Difference between Java and C++
- Java does not support operator overloading.
- Java does not have template classes as in C++
- Java does not support multiple inheritence of classes. This is accomplished using a new feature called “inheritence”.
- Java does not support global variables. Every variable and method is declared within a class and forms part of that class.
- Java does not use pointers.
- Java has replaced the destructor function with a finalize() function.
- There are no header files in Java.
- Java also adds some new features.
- While C++ is a superset of C,Java neither a superset nor a subset of C or C++.

