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

Difference between arraylist and hashset in java?

535


what invokes a threads run() method? : Java thread

567


What is the function of character?

520


How can a gui component handle its own events in java programming?

523


Is java programming easy?

534






What are the core java topics?

560


What are the library functions in java?

542


What is immutability in java?

600


What are passing parameters?

583


Can we extend immutable class?

523


Explain thread in java?

658


What is subsequence of a string?

596


What is high level language in computer?

530


what is mena by object block any what is the use of that

1766


How many types of methods are there?

542