+ 2

What is differene between c++ and java

difference between two

21st May 2017, 6:03 PM
sushmitha
sushmitha - avatar
5 Answers
+ 4
In C++ (1)C++ is platform-dependent. (2)C++ supports goto statement. (3)C++ supports operator overloading. (4)C++ uses compiler only. (5)C++ supports both call by value and call by reference. (6)C++ supports structures and unions. (7)C++ is mainly used for system programming. (8)C++ supports multiple inheritance. (9)C++ supports pointers. (10)C++ doesn't support documentation comment. In Java ................. (1)Java is platform-independent. (2)Java doesn't support goto statement. (3)Java doesn't support operator overloading. (4)Java uses compiler and interpreter both. (5)Java supports call by value only. There is no call by reference in java. (6)Java doesn't support structures and unions. (7)java has restricted pointer support in java. (8)Java doesn't support multiple inheritance through class. It can be achieved by interfaces in java. (9)Java is used for application programming or enterprise and mobile applications. (10)Java supports documentation comment (/** ... */) to create documentation for java source code.
22nd May 2017, 4:46 AM
Nikhil
Nikhil - avatar
+ 3
java was invented after c++. differences include: automatic memory management, get rid of header files hides the notion of pointer and runs in java vm rather than directly on the machine ser also: https://en.m.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B
21st May 2017, 6:32 PM
ifl
ifl - avatar
+ 1
they are two different languages, have similar but different syntax, different functionalities
21st May 2017, 6:05 PM
‎ɐısıօՏɐ
‎ɐısıօՏɐ - avatar
+ 1
with c++, you can get down to low-level programming. It also allows for the use of pointers.
21st May 2017, 7:52 PM
Olayinka Oyewole
Olayinka Oyewole - avatar
0
Java is not used for low level programming. Low level is programming closer to the machine language that becomes harder for programmers to read. Machine language is the 1's and 0's at the core of a device, like a computer.
21st May 2017, 6:28 PM
Manual
Manual - avatar