Monday, 24 March 2014

DIFFERENCE BETWEEN JAVA AND C++

Posted By: Unknown - Monday, March 24, 2014


Few differences are given below…
1. Java does not support operator overloading
2. A class definition in Java looks similar to a class definition in C++, but there is no closing semicolon.
3. Forward reference declarations are not required in Java.
4. Scope resolution operator (::) required in C++ is but not in Java.
5. In C++ you have to re-declare static data members outside the class but such things are not required in Java
6. C++ uses extensively pointers. Programmer need to manage memory leaks. Java do not use pointers and java uses garbage collection for free memory management.
7. Java compile code to byte code and C++ compiles to object code ( machine language code).
8. Java do not have virtual keyword or we can say that everything is virtual in Java. In C++, we need to use virtual keyword for run time decision

0 comments:

Post a Comment

this blog is helpful or not

International

Auto News

Translate

Pages

Popular Posts

Popular Posts

Designed By Templatezy / Sb Game Hacker Apk / MyBloggerThemes