Multiple choice technology web technology

Which class is on top of hirarchy in Java

  1. String

  2. System

  3. Final

  4. Object

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

In Java, the Object class is at the top of the class hierarchy - every class implicitly extends Object (except Object itself, which has no superclass). This provides common methods like equals(), hashCode(), toString(), and getClass() to all objects. String and System are classes that inherit from Object, while Final is a keyword, not a class.