+ 3

What are the difference in c++ and java?

Two major programming languages, C++ and Java, what are the differences between these languages?

14th Dec 2016, 5:08 PM
Nawaj Shareef
Nawaj Shareef - avatar
1 Odpowiedź
+ 1
One major difference is that C++ code can be written once and compiled for different systems separately, but Java code only needs to be compiled once and it can run on any system with Java software installed. These philosophies are called: Write once, compile anywhere (WOCA) vs Write once, run anywhere (WORA). Java is also a partly interpreted language which is compiled/translated to middle language called byte code, whereas C++ can compile straight to machine code that the computer can read.
14th Dec 2016, 5:33 PM
Antek