What is the difference between C++ & Java?

Answer Posted / mustafa daudi

*Java Supports dynamic memory allocation due to dynamic
allocation there is no wastage of memory..
While in c++ there is wastage of memory.
*Java is exensible because new class can easily added in
libraries while in c++ it is not possible..

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does system out println () do?

551


Why volatile is used in java?

526


Can we have return statement in finally clause? What will happen?

510


What is a module function?

553


What is immutable in java?

537






What will be the default values of all the elements of an array defined as an instance variable?

544


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

699


What does jre stand for?

600


What is the purpose of the System class?

576


What is the implementation of destroy method in java. Is it native or java code?

475


Can we increase size of array?

562


Explain the access modifiers for a class, method and variables?

649


What are the 7 types of characters?

562


What is sortedmap interface?

546


What is the difference between keyword and identifier?

525