What is the difference between C++ & Java?
Answer Posted / gokul
1) c++ is platform dependent
Java is platform independent
2) multiple inherence is possible in c++ but not in Java
3) Pointers possible in c++ but not in Java
4) we cant create web applications in c++ but can in Java
5) A c++ program can be without class, but java program
should be in class :)
| Is This Answer Correct ? | 26 Yes | 3 No |
Post New Answer View All Answers
What is super constructor?
What is a flag variable?
What are static variables and functions?
Why generics are used in java?
State some situations where exceptions may arise in java?
What does the “final” keyword mean in front of a variable? A method? A class?
What is size_t?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What is backdrop?
Write a java program for binary search?
What is the purpose of nested class in java?
can rmi and corba based applications interact ?
Is a copy constructor?
Can a private method be declared as static?
What are the drawbacks of reflection?