Multiple choice

All classes in Java directly or indirectly extends ……………. class.

  1. object

  2. system

  3. string

  4. integer

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

In Java, every class directly or indirectly extends the Object class. Object is the root of the class hierarchy. System, String, and Integer are all classes that themselves extend Object.