Skip to content
Sharp

System Design · interview question

In JVM architecture, what is the main purpose of the garbage collector?

Multiple choiceHardchapter-20-curatedpremiumsystem-designdrawing-the-blueprint
Choose one answer
Answer and explanation

Correct answer

B. Automatically reclaim memory by removing unused objects

Why

The garbage collector in JVM automatically reclaims memory by identifying and removing objects that are no longer in use, which helps manage memory efficiently and prevent leaks.

Test yourself on System Design

A free test with instant, explained results. No account needed.

Start free test
All System Design questions →