Thursday, March 6, 2014

Differences between Java & C++

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.
Image result for dennis ritchie

  1. Dennis Ritchie
    Computer Scientist
  2. Dennis MacAlistair Ritchie was an American computer scientist. He created the C programming language and, with long-time colleague Ken Thompson, the Unix operating system. Wikipedia

No comments:

Post a Comment