Home » Interview » Technology

By whom will the unallocated memory that is no longer needed will be cleared in java?

Correct Answer: Garebage collector

Explanation:

The Java programming language provides a system-level thread to track memory allocation.


Garbage collection has the following characteristics:


• Checks for and frees memory no longer needed


• Is done automatically


• Can vary dramatically across JVM implementations


← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion