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 are the methods of object class ?
What are the differences between this and super keyword?
What is the role of garbage collector in java?
What is boolean strategy?
what are the methods in object?
What modifiers may be used with a top-level class?
What is a instance variable?
how can you take care of mutual exclusion using java threads? : Java thread
What is communist flag?
How dead lock situation occurs in java and how you can identify it?
What is static data type in java?
Differentiate between a class and an object.
What is a Null object?
Can we overload final method in java?
Explain about main() method in java ?