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
Is singleton set an interval?
How can you read content from file in java?
What is a Presistent Object?
Is java call by reference?
What is java beans?
What is the difference between superclass and subclass?
Explain the difference between a Thread and a Process.
If system.exit (0); is written at the end of the try block, will the finally block still execute?
why are there separate wait and sleep methods? : Java thread
What is the difference between iterator and enumeration ?
What are memory tables?
Why can't you declare a class as protected?
Can main() method in java can return any data?
Can we call the run() method instead of start()?
Which variables are stored in stack?