What Is Difference Between C++ and Java? - FindersAdda : Tutorials of Make Money, Computer or Internet

Monday, 20 November 2017

What Is Difference Between C++ and Java?

There are following differences between C++ and Java which is shown in tabular format.



Differences between cpp and java






C++
JAVA
C++ is a procedural or object oriented programming language. Since, it is possible to write C++ program without using a class.
Java is purely object oriented programming language because a java program cannot be written without a class. It means a java program contains at least one class.
C++ allows the concept of global variable, virtual keyword, operator overloading, friend keyword.
Java does not allow these concepts.
Allocation and deallocation of memory is responsibility of programmer in C++.
Memory management is done by Java Virtual Machine (JVM) in Java.
In C++, there is a concept of header file, #define.
Java does not allow the concept of header file. It allows package.
There are three access specifier in C++ like public, private and protected.
Java allows four access specifier like public, private, protected and default.
C++ is single threaded.
Java is multi-threaded.
C++ supports direct pointer.
Java does not support direct pointer.
C++ implements multiple inheritances with classes.
Java does not implement multiple inheritances with classes.
C++ does not implement interface.
Java implements concept of interface.
C++ is plate form dependent.
Java is plate form independent.
C++ implements explicit destructor.
Java does not have destructor.



Conclusion


 I hope you liked this post so much. If you loved this post, so, share with your friends and also give some suggestion that what should i improve in this post. Thank You So Much......

 

About Author

SUMIT KUMAR GUPTA
SUMIT KUMAR GUPTA

Author & Editor

Myself Sumit Kumar Gupta & 21 year's old person. I am a programmer and blogger. I spend much more time on programming and blogging and helps other programmers and bloggers.

0 comments:

Post a Comment

We are eager to see your comments.
Comment Rule :

1. Don't use any link in the comment box. If you have any problem related to link then contact me with the contact form.

2. Don't use the wrong word if you write the wrong word in comment box then it will get spam.