What is the difference between C++ & Java?

Answer Posted / mamta

java is automatic garbage collector where in c++ we have to use destructor to deallocate the memory.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why you should not use singleton?

553


What are the legal operands of the instanceof operator?

570


What is the disadvantage of java?

514


Under what conditions is an object’s finalize() method invoked by the garbage collector?

583


Why does it take so much time to access an applet having swing components the first time?

1402






Can we convert stringbuffer to string?

570


What are constants and how to create constants in java?

564


Is empty set an element of empty set?

612


What modifiers may be used with an inner class that is a member of an outer class in java programming?

540


Is java a compiler?

573


Which collection allows duplicate values in java?

552


What is method with example?

591


What checkbox method allows you to tell if a checkbox is checked?

554


Which of the following is not an isolation level in the JDBC

1616


Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?

559