top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+8 votes
521 views

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
...