what is the difference between Cpp And Java
Answer Posted / segi reddy
1. cpp is platform dependent where as java is platform
independent.
2. #define, typedef are available in cpp where as in java
others are availble to achieve it.
3. goto statement is there in Cpp where as in java it is
not available.
4. there are 4 types of access specifiers are available in
java and in Cpp only 3 types are available.
5. No header files in Java.
6. no Pointers concept in java.
7. Destructors are not available in java
| Is This Answer Correct ? | 29 Yes | 1 No |
Post New Answer View All Answers
What is volatile keyword in java
What is lossy conversion in java?
What is java lang string?
Convert Binary tree to linked list.
Difference between vector and arraylist.
Objects or references which of them gets garbage collected?
What is the difference between interface & abstract class?
When do we use hashset over treeset?
Differentiate between nested and inner class in java.
What are the 6 functions?
What is local declaration?
How does linkedhashmap work in java?
Can you extend main method in java?
What is static import in java?
What are the types of literals?