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
Can we have more than one package statement in the source file?
what is the purpose of the runtime class?
Explain what is Marker interface?
What is a short in java?
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
Which java ide is used the most?
Can we create constructor in abstract class ?
What is sizeof in java?
What is java’s garbage collected heap?
placement papaers of spring computing technology
How do you convert bytes to character in java?
How is a variable stored in memory?
What is jit compiler in java?
What is string :: npos?
Is it compulsory for a try block to be followed by a catch block in java for exception handling?