top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What is the difference in memory management between Java and C++?

+8 votes

Memory leak risks are higher in java or C++?? Explain it.

posted Feb 5, 2014 by Gurpreet Singh Matharoo

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Java has no explicit memory reclamation operators--garbage collection used instead.
Java has no explicit pointers
Java eliminates value (i.e., stack-allocated) objects--all objects are allocated off the heap.

answer Feb 5, 2014 by Majula Joshi
Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.