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
What is final keyword in java?
What is += mean in java?
how its run?
What is the purpose of default constructor?
Can this keyword be used to refer static members?
What is the maximum size of list in java?
Why strings in java are called as immutable?
What are byte codes?
what are the methods in object?
What is double checked locking in singleton?
What is static variable with example?
List out five keywords related to exception handling ?
What is reflexive association?
What is the use of singleton class?
What is scope of a variable?