+ 3

How different is java from c++

20th Dec 2016, 7:41 PM
Saif
4 Answers
+ 7
No you don't need to learn C++ to learn Java, but they are related. Java is strictly object oriented, c++ can bee used in both object oriented and procedural proramming styles. In java, a great library of functions is avaliable to you from the start. In C++ you may have to get more libraries (or write your own), to for example render a image. Java is compiled to byte code that run in a virtual machine on windows, linux or mac (if you don't insist on using system specific functions). C++ is compiled into an executable for your operating system, and have to be recompiled for other operating systems if you manage to write portable code. C++ is faster when it runs faster when it is run by the operating system, Java is slower due to running in a virtual machine, that is run by the operating system. There is more but lets start with this for now :)
20th Dec 2016, 8:11 PM
Mattias Eriksson
Mattias Eriksson - avatar
+ 4
I'd say it's the opposite...
20th Dec 2016, 7:58 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
somebody told me that to learn java you have to necessarily learn c++. kindly tell me is that true
20th Dec 2016, 7:47 PM
Saif
+ 2
@Saif, to your question, it's not always true, if you are already comfortable with the Object Oriented Programming style then you may straight away start with the JAVA as well; I myself did JAVA first. Hope it helps.
20th Dec 2016, 8:46 PM
Khizar Ahmed
Khizar Ahmed - avatar