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


Please Help Members By Posting Answers For Below Questions

What are the advantages of java over C++?

924


What is a generic type?

752


How do you create a sop?

730


What do you mean by an interface in java?

756


How do you read a char in java?

696


When can you say a graph to be a tree?

834


What is the purpose of nested class in java?

805


What is java objectoutputstream?

734


How many types of parsers are there?

775


What is the difference between a vector & an array list?

896


What data type is true or false?

772


what are different ways in which a thread can enter the waiting state? : Java thread

697


What is the use of StringTokenizer class?

808


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

7714


Can we write multiple catch blocks under single try block?

827