Which is the root class of all AWT events in Java?

2021

Which is the root class of all AWT events in Java?

Answer: B. Java.awt.AWTEventAll AWT events in Java are subclasses of AWTEvent , which is the root of the AWT event hierarchy.

  1. A.

    Java.awt.ActionEvent

  2. B.

    Java.awt.AWTEvent

  3. C.

    Java.awt.event.AWTEvent

  4. D.

    Java.awt.event.AWTEvent.Event

Attempted by 506 students.

Show answer & explanation

Correct answer: B

All AWT events in Java are subclasses of AWTEvent , which is the root of the AWT event hierarchy.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Up Lt Grade Assistant Teacher 2025

Loading lesson…