Differences between C++ and Java 
 
1. Java is a true object-oriented language while C++ is basically C with object oriented extension.

2. Java does not support operator overloading where as C++ supports operator overloading 

3. Java does not have template classes but C++ has templates

4. Java does not support multiple inheritance, it can be achieved using "interface" concept. C++ supports multiple inheritance.

5. No global variable declaration in Java, the variables and method declared in each class forms part of a class. C++ accepts global declaration of variables.

6. No pointer concept is used in Java. C++ has pointer concept

7. Java does not have destructor function it has been replaced by finalize ( ) function. C++ has destructor function.

8. No header file is used in Java.  C++ uses header files to include all library files.