Pages

get our extension

Search program

Monday 12 August 2013

Difference Between JAVA and C++

                                  C++
                                       JAVA
C++ is not a purely object oriented programming language, since it is possible to write C++ program without using a class or an object.
Java is purely object oriented programming language, since it is not possible to write a java program without using at least one class.
Pointers are available in C++
We can not create and use pointers in java.
Allotting  memory and deallocating memory is the responsibility of the programmer.
Allocation and deallocation of memory will be taken care of by JVM.
Operating overloading is available in C++.
It is not available in Java.
Multiple Inheritance feature is available in C++.
No multiple feature in Java, but there are means to achieve it.
There are 3 access specifiers in C++; private, public and protected.
Java supports 4 access specifiers: private, public, protected, and default.
#define, typedef and header files are available in C++.
#define, typedef and header files are not available in C++, but there are means to achieve them.

No comments:

Post a Comment