Skip to content
Sharp

Core Java · interview question

Which of the following statements is true regarding wrapper classes in Java?

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

Correct answer

C. They provide a way to use primitives as objects

Why

Wrapper classes provide a way to treat primitive data types as objects, enabling them to be used in collections and other object-requiring contexts.

Test yourself on Core Java

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

Start free test
All Core Java questions →