Skip to content
Sharp

JVM Architecture · interview question

Why is lazy loading of classes beneficial in a Java application?

Multiple choiceMediumchapter-14-curatedpremiumjvm-architectureclass-loading
Choose one answer
Answer and explanation

Correct answer

A. It decreases initial memory usage

Why

Lazy loading of classes helps decrease initial memory usage by loading classes only when they are first needed, rather than loading all classes at startup. This can be particularly beneficial in applications with a large number of classes.

Test yourself on JVM Architecture

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

Start free test
All JVM Architecture questions →