What is the difference between C++ & Java?
Answer Posted / gyana
You can say as java is the advance version of the C++.You
can made differences between this two because java do some
modification in the C++ and released it.So there are 6
differenes between java and c++.these are
1-Java does not support predessor.
2-Java doesn't contain any data types such as enum,
struct,union.
3-java doesnot support multiple inheritance however it
supports this by using interface.
4-Java have no template class.
5-java is platform indepedent and c++ is plotform
indepedent.
6-java donot contain any pointer values.
7-java java doesnot contain goto keyword.
these above features are not supported by java but
supported by C++.So these are the differences between java
and C++.
| Is This Answer Correct ? | 61 Yes | 9 No |
Post New Answer View All Answers
What are variable arguments or varargs?
Which package has light weight components in java programming?
Does treeset use compareto?
What is the difference between break and continue statements?
What are the drawbacks of reflection?
What’s the difference between unit, integration and functional testing?
What is volatile keyword in java
What is the best way to findout the time/memory consuming process?
Difference between method overloading and method overriding in java ?
How many types of literals are there in JAVA?
Can a java program have 2 main methods?
What is a method signature java?
How to call one constructor from the other constructor ?
Is there any difference between synchronized methods and synchronized statements?
What is the role of the java.rmi.naming class?