Question:
C++ or Java? Which to learn first?
anonymous
2012-06-04 23:28:18 UTC
Hi. I am learning html5 as a basic language and I want to learn and concentrate on either java or c++. I know the basics of c++ (cout, cin, basic calculator) and I like it. Our school will be teaching us Java next year. I am learning c++ from thenewboston and I am pretty sure that i can finish all his c++ tutorials before starting next grade where they will teach us java. Still, I am pretty confused because if I learn Java now i will have a headstart in school and other things. But eventually , I am gonna learn both. So which should I learn and how should I learn it?

Thanks in Advance!
Seven answers:
Nikhil Sagar
2012-06-05 05:01:56 UTC
you should go with java because by using java you can make platform independent applications which is the real need of today's era.

java is very much secured than c++ because it does not have any pointers concept.and you know in a business application security is the first thing.

Today almost every company want to develop their application in any language which is more secured, platform independent.

I Think Now you have enough reasons to choose java.
SomeGuy
2012-06-06 21:57:05 UTC
Ok I hate when people talk and give answers about something they don't know about. Now I use many different languages including c++ and java. Now I use c++ more but this is not a biased opinion. I would have to say start with c++. Now it's not enough to say start with c++ you have to know why and I'll explain it to you.



C++ is a hybrid programming language and Java is strictly object oriented.



Now from a beginners standpoint learning classes off the bat can be really hard. Classes are such a broad subject and having to learn about them from the get go can be very confusing to the average beginner.

C++ on the other hand has a much easier learning curve, although it gets harder in the end when you're writing big robust code, it is easier to learn. Also java and c++ have similar syntax, therefore what you learn in c++ can be transfered over to java and vice versa.



With c++ you start with the bare basics: Variables. In java you start off with classes which is very broad and the downside is that they only teach you a portion about classes at the beginning to just try and let you understand it but not knowing about classes fully can be irritating.



So I can honestly rant all day about how great c++ is but tbh you already have a head start with c++ so why stop? Once you learn about classes and such with c++ you'll come to see how easy java can be.



So continue with c++ and you'll be prepared for whats in store next year. Hope this helped :)
justme
2012-06-05 08:32:04 UTC
If you plan on learning both anyway (good idea), then just finish your C++, and next year take the Java class. C++ and Java have almost identical syntax, so if you know one its pretty easy to learn the other. Guaranteed if you know C++ you will already have a head start over the others in the class.
Mahesmanandhar
2012-06-04 23:32:47 UTC
C++ and Java both are Object Oriented Programming.



Major difference between the these two programming language :



Java : Compile code is bytecode meaning it can run on any machine with Java Virtual Machine.



C++ : Complile code is machine dependent.



So, it's better if you choose Java.



But for the beginner you can try learning the Basic C Programming.
YASIR_AFRIDI
2012-06-06 03:47:36 UTC
Learn one language fully, and you will be comfortable to program in another...



1- C++ teach you very basic elements (A closer look into programming)



2- Java provide you some cooked programming.. Like easy GUI interface programming, which is

comparatively hard in C++



So I suggest you to learn C++ First .......
anonymous
2012-06-04 23:35:31 UTC
according to me you should go for c++ because java is still undergoing a lot of changes. and it's a fact that most programs till date are developed in c++ and also use of pointers make it highly flexible.
DR Phil
2012-06-04 23:29:25 UTC
java.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...