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 do you mean by constructor?
Why we use multi threading instead of multiprocessing?
Explain the protected field modifier?
What is use of static in java?
Can size_t be negative?
Describe how to implement singleton design pattern in struts.
Explain the private field modifier?
How does arraylist size increase in java?
What is Hierarchy of exception?
How do you clear a list in java?
Why singleton is not thread safe?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
what is mena by object block any what is the use of that
What is rmi and steps involved in developing an rmi object?
What is Recursion Function?