Monday 7 November 2016

Difference Between Java vs. C++:



                      JAVA
                          C++
Java is platform independent.
C++ is platform dependent.
Java uses the concept of Byte Code.
C++ does not use the concept of byte code.
Java uses Java Virtual Machine.
C++ does not use JVM.
Java does not support the concept of pointers.
C++ supports the concept of pointer.
Java Supports the concept of applets.
C++ does not support the applet programming.
Java supports multithreaded programming.
C++ does not support multithreaded programming.
Memory management is easier.
Memory management is difficult.
Java is more portable language.
C++ is less portable.
Java is more secured.
C++ is less secured.
The output of the java compiler is byte code.
The output of C++ compiler is executable code.
char data type is 16-bit long.
char data type is 8-bit long.
Java does not support operator overloading.
C++ supports operator overloading.
Java does not support template classes.
C++ supports template classes.
Java does not support global variables.
C++ supports global variables.
Java does not support multiple inheritance of classes. This is accomplished using a new feature called “interface”.
C++ supports the concept of multiple inheritance of classes.
Java replaced the destructor function with the finalize () function.
C++ does not support finalize() function.
There are no header files in Java.
Header files are supported in C++.

No comments:
Write comments