Skip to content
Sharp

Engineering Interviews · interview question

Which space in the Java memory model is primarily used for short-lived objects?

Multiple choiceMediumchapter-20-curatedpremiumengineering-interviewsjvm-trivia
Choose one answer
Answer and explanation

Correct answer

A. Eden space

Why

The Eden space is part of the Young Generation in the Java heap where most new objects are allocated. It is optimized for short-lived objects and is cleared frequently.

Test yourself on Engineering Interviews

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

Start free test
All Engineering Interviews questions →