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


Please Help Members By Posting Answers For Below Questions

What is boolean query?

524


Can private class be extended java?

555


Explain the private protected method modifier?

538


Why multiple inheritance is not supported by java?

505


Can singleton class be cloned?

551






What is super keyword explain with example?

525


Explain the concept of hashtables?

607


which pattern is default in scanner package?

1793


Can a boolean be null java?

535


How do you identify independent and dependent variables?

498


What is boolean in java?

502


Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain

1426


According to java operator precedence, which operator is considered to be with highest precedence?

593


What about anonymous inner classes in java?

559


What is size_t?

499