Multiple choice

Which of the following methods of Class returns a Class object for each of the public classes and interfaces that are members of the invoking object?

  1. getClassLoader()

  2. getClasses()

  3. forName()

  4. getConstructors()

  5. getDeclaredFields()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This method of Class returns a Class object for each of the public classes and interfaces that are members of the invoking object.