Skip to content
Sharp

Reflection API · interview question

Which Java package contains the classes for Reflection?

Multiple choiceEasychapter-16-curatedpremiumreflection-apibreaking-encapsulation
Choose one answer
Answer and explanation

Correct answer

C. Java.lang.reflect

Why

The Reflection API is part of the 'java.lang.reflect' package, which provides classes and interfaces for obtaining reflective information about classes and objects.

Test yourself on Reflection API

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

Start free test
All Reflection API questions →