Saturday, January 11, 2014

Difference between JAVA and C++?


C++
JAVA
Pointers available
Does not support Pointers.
Goto statement available
Goto statement not available
Multiple Inheritance available
Does not support Multiple inheritance. Use Interface instead of that.
Operator Overloading available
Operator overloading not available.
Constructor and destructor available
Only constructor ,No destructor.
Access specifiers are private, public
and protected.
Access specifiers are  private, public,default and protected.

No comments:

Post a Comment