What is the difference between C++ & Java?
Answer Posted / afreen
Differences between c++ and java are as follows:-
..c++ has header file #include<iostream.h> whereas java has import java.io.*;
..c++ uses clrscr() and getch(), java do not.
..c++ supports destructor, whereas java do not.
..complilation and running program differs in c++ and java.
..java is platform independent and machine independent, whereas c++ is not.
..In c++,the entire program is written in one class itself whereas java can have multiple classes.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Which types of exceptions are caught at compile time?
What is object english?
How do you sort arraylist in descending order?
Explain wrapper classes in java?
What are structs in java?
what is aggregation in java?
What are different types of expressions?
What is an object in java and how is it created?
According to java operator precedence, which operator is considered to be with highest precedence?
Differentiate between class and structure.
What is meant by binding in rmi?
What is java in layman terms?
What is re-factoring in software?
Is overriding possible in java?
Can we declare register variable as global?