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
Variables used in a switch statement can be used with which datatypes?
hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea
When would you use a static class?
What is the purpose of static methods and static variables?
Can we create an object of static class in java?
Is there any sort function in java?
Explain the differences between static and dynamic variables?
How can you make a class serializable in java?
How to display arraylist values in java?
Convert a BST into a DLL and DLL to BST in place.
What is an array length?
Explain the difference between throw and throws in java?
What is treeset and treemap in java?
When should we create our own custom exception classes?
What is stack example?