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


Please Help Members By Posting Answers For Below Questions

What is the this keyword?

552


How will you get the platform dependent values like line separator, path separator, etc., ?

575


What is tcp and udp?

593


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

7402


What is the difference between the file and randomaccessfile classes?

526






Can a constructor call the constructor of parent class?

532


Why local variables are stored in stack?

489


What is a JAR file?

588


What do you mean by stack?

631


What happens if we don’t define serial version uid?

563


How would you convert bytes to string?

555


What environment variables are required to be set on a machine in order to run Java programs?

612


What is the symbol for space?

558


What is main function purpose?

517


What is are packages?

577