The
main difference between Java and C++ is; Java is platform independent language
and it is mainly used for design web-based application but C++ is platform
dependent language and it is mainly used for design desktop application.
Java
|
C++
|
Java does't support
Pointer concept
|
It support pointer
concept.
|
It doesn't support
multiple inheritances.
|
It supports
multiple inheritances
|
Java does not
include structures or unions.
|
It has structure
and union concept.
|
Java includes
automatic garbage collection.
|
C++ requires
explicit memory management
|
Java has method
overloading, but no operator overloading.
|
C++ supports both
method overloading and operator overloading.
|
It is a platform
independent programming language
|
It is platform
dependent programming language.
|
It is mainly used
for design web-based application but also useful for developing a desktop
application.
|
It is used for
design only desktop application like OS, Compiler, etc.
|
Java uses compiler
and interpreter both
|
C++ use the only
Compiler.
|
Java is a
high-level programming language in java we write code like simple English
language.
|
C++ is nearer to
hardware than Java
|
0 comments:
Post a Comment