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
Is Java a dying language?
How do you input a string in java?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
What is length in java?
How do you add an element to a hashset in java?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
Can we override static methods in java?
Which oo concept is achieved by using overloading and overriding?
What are access specifiers available in java?
Why is java so important?
What exceptions occur during serialization?
What is the function of log?
Explain about interrupt() method of thread class ?
Does importing a package imports its sub-packages as well in java?
What is java abstraction with example?