What class is the top of the AWT event hierarchy?

A) java.awt.AWTEvent
B) java.awt.Event
C) java.util.eventObject
D) javax.swing.Object
Explanation: The java.awt.AWTEvent class is the highest-level class in the AWT event class hierarchy.

Showing Answers 1 - 2 of 2 Answers

pallavr

  • Jun 30th, 2006
 

This is kind of a dicy question:

But in Java the event heirarchy goes like :

java.lang.object -> java.util.EventObject -> java.awt.AWTEvent.

So the java.util.EventObject is the superclass of all events.

But java.awt.AWTEvent is the superclass of all AWT events like low level (Componet ,Key,Focus,Mouse) and semantic events(Action,Text,Item,Adjustment).

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions