Difference between Java and C++
1. In java, There are no header files. | 1. In c++, There are exists header file such as < iostream.h > |
2. Java does not support operator overloading. | 2. C++ supports operator overloading. |
3. Java does not have template classes | 3. C++ has template classes. |
4. Java does not support global variables. | 4. C++ supports global variables. |
5. Java does not support multiple inheritance of classes. | 5. C++ supports multiple inheritance of classes. |
6. Java does not use pointer | 6. C++ uses pointer features. |
7. Java supports thread features. | 7. C++ does not supports threads. |