Java code,java,Example,Tutorials,Syntax,Hibernate,Jsp, Servlet, FileHeadling,Java or Core Java Tutorial or Java Programming Tutorial is a widely used robust technology. learning of java from basic questions like what is java tutorial, core java, where it is used, what type of applications are created in java and why use java.

Search This Blog

Wednesday, 17 August 2016

java and c++


Explain Different between c++ and java

Comparison IndexC++Java
Platform-independentC++ is platform-dependent.Java is platform-independent.
Mainly used forC++ is mainly used for system programming.Java is mainly used for application programming. It is widely used in window, web-based, enterprise and mobile applications.
Goto Statement C++ supports goto statement.Java doesn't support goto statement.
Multiple inheritanceC++ supports multiple inheritance.Java doesn't support multiple inheritance through class. It can be achieved by interfaces in java.
Operator Overloadingit  supports operator overloading.it doesn't support operator overloading.
PointersC++ supports pointers. You can write pointer program in C++.Java supports pointer internally. But you can't write the pointer program in java. It means java has restricted pointer support in java.
Compiler and InterpreterC++ uses compiler only.Java uses compiler and interpreter both.
Call by Value and Call by referenceC++ supports both call by value and call by reference.Java supports call by value only. There is no call by reference in java.
Structure and UnionC++ supports structures and unions.Java doesn't support structures and unions.
Thread SupportC++ doesn't have built-in support for threads. It relies on third-party libraries for thread support.Java has built-in thread support.
Documentation commentC++ doesn't support documentation comment.Java supports documentation comment (/** ... */) to create documentation for java source code.
Virtual KeywordC++ supports virtual keyword so that we can decide whether or not override a function.Java has no virtual keyword. We can override all non-static methods by default. In other words, non-static methods are virtual by default.
unsigned right shift >>>C++ doesn't support >>> operator.Java supports unsigned right shift >>> operator that fills zero at the top for the negative numbers. For positive numbers, it works same like >> operator.


Share:

Agravat &Google

Total Pageviews

Blog Archive

vipul c.Agravat . Powered by Blogger.

myjava

myjava
java

myimg

myimg
good

Translate

Recent Posts

Unordered List

Definition List

Pages

Theme Support