Skip to content
Sharp

Core Java · interview question

What is one downside of autoboxing in Java?

Multiple choiceMediumchapter-7-curatedpremiumcore-javawrapper-types-and-autoboxing
Choose one answer
Answer and explanation

Correct answer

A. Increased memory usage

Why

Autoboxing can lead to increased memory usage because each boxed primitive requires an object, which has more overhead than a primitive value.

Test yourself on Core Java

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

Start free test
All Core Java questions →