Difference Between C++ and java
|C++ is basically a C with Object Oriented Extension.
||Java is true Object Oriented language.
|C++ is platform-dependent.
||Java is platform-independent.
|C++ is mainly used for system programming.
||Java is mainly used for application programming. It is widely used in window, web-based, enterprise and mobile applications.
|C++ supports multiple inheritance.
||Java doesn’t support multiple inheritance through class. but It can be achieved by interfaces in java.
|C++ supports operator overloading.
||Java doesn’t support operator overloading.
|C++ supports both call by value and call by reference.
||Java supports call by value only. There is no call by reference in java.
|C++ uses compiler only.
||Java uses compiler and interpreter both.
|C++ supports goto statement.
||Java doesn’t support goto statement.