What is the difference between C++ & Java?

Answer Posted / ashish saran

There are many differences between C++ and Java, but they are all having some kind of substitute for that in one another. for eg, Java is missing pointers but there are collections framework in Java for implementing data structures.Java is missing multiple inheritance but has interfaces for that.

The architecture of both languages differ. In C++ header files are used, while the whole architecture of Java depends on Classes(there are also advantages to that).

However the main differences are of Multi-Threading and Platform Independence which are only in Java. Also it is more Programmer friendly.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to display all the prime numbers between 1 and 100

496


What are the steps in the jdbc connection?

568


Tell me the Importent classes in net package?

1578


How does compareto work in java?

566


What is preflight request?

522






When is finally block not called?

579


Which is easier .net or java?

637


Explain access specifiers?

653


What is the java idl system?

579


What is final method?

576


which pattern is default in scanner package?

1794


Is 0 true or false?

510


how does multithreading take place on a computer with a single cpu? : Java thread

686


What programs use java?

464


How do you define a parameter?

576