Basic differences between C++ and Java Programming language

differences between C++ and Java Programming language

Basic differences between C++ and Java Programming Language

Both C++ and Java are Object Oriented Programming Language but still there are many differences between C++ and Java Programming language. C++ is a basic purpose programming language which is mainly designed for systems and applications programming and which is developed by Bjarne Stroustrup. Whereas Java is also general purpose programming language. Java is developed by James Gosling at Sun Microsystems, which was later acquired by the Oracle Corporation.

C++ and Java both are used to develop an application programming but both are very much different from each other. So let’s see the differences between C++ and Java Programming language

Also Read: Basic difference between C and Java.

Also Read: What is Java ? Introduction of Java Programming Language

Also Read: Java main() method analysis – why it is public static void main(String[] args) ?

Basic differences between C++ and Java Programming Language :

 

Sr. No.
C++
Java
1. C++ is both structural and object oriented programming language. Java is based on Object Oriented and Generic Programming.
2. Memory management is need to be done manually. Memory management is done automatically by Garbage Collector.
3. C++ supports for pointer as well as reference available too. Java supports only for reference instead of pointer.
4. C++ have a preprocessor. Java doesn’t have a Preprocessor
5. C++ supports for an operator Overloading Java doesn’t support for an Operator Overloading.
6. C++ supports goto statement Java doesn’t support goto statement.
7. C++ has template classes. java doesn’t have template classes.
8. C++ support Global Variable. Java doesn’t support a Global Variable.Every variable should declare in class.
9. C++ has an header files like iostream.h,dos.h,conio.h,etc. Java has no header file.
10. C++ is platform dependent. Java is platform Independent.

 

So now you got all the basic basic differences between C++ language and Java language and can distinguish both programming language and work on it.

Thank You !  🙂

Stay Connected with Place4Java.

1 Trackback / Pingback

  1. 14 Difference between c language and Java language - PLace4Java

Leave a Reply

Your email address will not be published.


*