Skip to content
Sharp

Memory · interview question

Which option describes the most likely pitfall around long-lived objects?

Multiple choiceHardchapter-16-curatedpremiummemorylong-lived-objects
Choose one answer
Answer and explanation

Correct answer

B. If everything is kept 'just in case', memory usage becomes a design problem rather than a garbage collector problem.

Why

If everything is kept 'just in case', memory usage becomes a design problem rather than a garbage collector problem. Calling out that risk matters because interviewers respect candidates who can explain object lifetime as well as allocation.

Test yourself on Memory

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

Start free test
All Memory questions →