Skip to content
Sharp

Core Java · interview question

Which principle does encapsulation primarily support?

Multiple choiceEasychapter-3-curatedpremiumcore-javacode-reading-and-state-safety
Choose one answer
Answer and explanation

Correct answer

A. Information hiding

Why

Encapsulation supports information hiding by restricting access to certain parts of an object, exposing only what is necessary and safeguarding the internal state.

Test yourself on Core Java

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

Start free test
All Core Java questions →