What is the difference between C++ & Java?

Answer Posted / komal

c++ uses destructor to deallocate memory.
java uses garbage collector for this purpose

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How an object is serialized in java?

542


What is bubble sorting in java?

606


What is an array length?

510


What is final?

613


What is the indent key?

594






What is class??

765


What are bind parameters?

563


What are local variables?

602


Why is java logo a cup of coffee?

631


What is difference between == equals () and compareto () method?

537


When a byte datatype is used?

575


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

603


What is double in java?

526


What are the ways in which a thread can enter the waiting state?

520


How do you write methodology?

570