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

2022

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

  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 298 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