Which is the root class of all AWT events in Java?
2022
Which is the root class of all AWT events in Java?
- A.
Java.awt.ActionEvent
- B.
Java.awt.AWTEvent
- C.
Java.awt.event.AWTEvent
- 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.