Diff between C++ and java?

Answer Posted / ruchi

In c++,there is destructor but in java there is no
destructor.
c++ programs are faster than java programs.
c++ supports multiple inheritance whereas java does not.
in c++ , we can write programs without classes but in java
we have to use classes .

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we override tostring method in java?

519


What do you mean by platform independence of Java?

540


What are the important methods of java exception class?

578


Why singleton is not thread safe?

572


What does it mean to be immutable?

558






What is bubble sorting in java?

607


What’s the difference between callable and runnable?

556


What is a file pointer?

525


What is skeleton and stub? What is the purpose of those?

550


What is the difference between arraylist and hashset in java?

527


Can we override private methods?

554


What does pointer mean?

550


What is the difference between class & structure?

577


how we can make a read-only class in java?

546


What is the method in java?

609