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

Explain the features of interfaces in java?

561


How do I type unicode?

542


What is arrays fill in java?

551


What is class variable java?

594


What do you mean by chromounits in java8?

532






How does map works in java?

528


Can we use catch statement for checked exceptions?

528


What is difference between c++ and java ?

679


What is the longest unicode character?

698


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

578


What is a qms manual?

552


What is thread pool? How can we create thread pool in java?

633


How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?

609


What are the differences between graph and tree?

653


How do you join strings in java?

532