C++

JAVA

It is not a pure object oriented programming language. Because without class we can steel write C++ program. It is a pure object oriented programming language. Because to execute the java program we must have at least one class.
It supports pointer, operator overloading, go to statement, destructor. It does not support pointer, operator overloading, go to statement, destructor.
It provides less data security. It provides more data security.
It has three access specifier public, protected and private. It provides four access specifier public, protected, private, default.
There is #include preprocessor directive statement to support the standard library. This is import statement to support the standard library.
Multiple inheritance is supported through class. Multiple inheritance is supported only through interface (not using class).
This language is platform dependent. This language is platform independent.
This language is a learning language now a day. This language is a production language.
This language is only compiler base just like C. This language is compiler as well as interpreter based.
Advertisements