Diff between C++ and java?

Answer Posted / sivasubramanian.k

In C++ there is concept of pointers for memory management
but there is garbage collecor in Java which automatically
allocates and frees memory after the particular scope in
the code...In C++ it supports concept of multiple
inheritance but for java instead of multiple inheritance
there is concept of interface...

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is boolean used for?

587


Explain about static nested classes in java?

604


What is a nullable field?

575


Explain inheritance in java?

553


Is array synchronized in java?

548






What is difference between array and arraylist in java?

458


What are the parts of methodology?

545


Does java trim remove newline?

538


What is a dynamic array java?

513


How do you ensure that n threads can access n resources without deadlock?

807


Is string thread safe in java?

576


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

1604


What is the exact difference in between Unicast and Multicast object? Where will it be used?

580


What will happen when using pass by reference in java?

520


What is a default constructor and also define copy contrucyor?

595