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
What is == mean?
What are basic data types?
What is java util hashmap?
What are identifiers in java?
What does void * mean?
Can a final variable be null?
Can a constructor be protected?
Can we override singleton class?
Which is easier netbeans or eclipse?
What is identifier with example?
What do you mean by inner class in java?
Can we create a class inside a class in java?
What are the basic concepts of OOPS in java?
What is arrays aslist in java?
How do you convert an int to a double in java?