Differences between Java & C++
Java
Java was developed by James Gosling in 1995 at Sun Microsystems (now acquired by Oracle Corporation).
Java is a true and complete object oriented language.
Java does not provide template classes.
Java supports multiple inheritance using interface.
Java does not provide global variables.
Java does not support pointers.
In Java, destruction of objects is performed in finalize method.
Java doesn’t provide header files.
C++
- C++ (earlier known as C with Classes) was developed by Bjarne Stroustrup in 1979 at Bell Labs
- C++ is an extension of C with object oriented behavior. C++ is not a complete object oriented language as that of Java.
- C++ offers Template classes.
- C++ achieves multiple inheritance by permitting classes to inherit from multiple classes.
- Global variables can be declared in C++.
- C++ supports pointers.
- In C++, destruction of objects is performed by destructor function.
- C++ has header files.
- Dennis Ritchie
- Born: September 9, 1941, Bronxville, New York, United States
- Died: October 12, 2011, Berkeley Heights, New Jersey, United States
- Books: The C Programming Language, more
- Awards: Turing Award, National Medal of Technology and Innovation, IEEE Emanuel R. Piore Award