Multiple choice

Which class in Java does not extends an existing class

  1. Integer

  2. Object

  3. String

  4. Class

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

In Java, the Object class is the root of the class hierarchy; it is the only class that does not extend any other class.