Difference between java and c++

Java 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 classes3. 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 pointer6. C++ uses pointer features.
7. Java supports thread features.7. C++ does not supports threads.

Recommended Posts:

    1. Features of Java
    2. Java Program Structure
    3. Command Line Arguments in Java
    4. Difference between java and c++
    5. Java Data Types
    6. Scope of Variables in Java
    7. Operators in Java
    8. Looping Statement in Java
    9. Objects and Classes in Java
    10. Constructors in Java
    11. Method Overloading in Java with Program