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 a class be private?
What is map and hashmap in java?
What is Garbage Collection in Java
What is multiple inheritance? Is it supported by java?
Can we override constructor in java?
When would you use a static class?
Which method cannot be overridden in java?
What is a private class in java?
Explain restrictions on using enum?
Where is stringbuffer stored?
Can a constructor call another constructor?
What is binary search in java?
What is r * in math?
What is meant by design patterns?
What is final, finally, finalize?