Explain the purpose of Event Object.
- The EventObject represents the events.
- The super class of all event classes is java.util.EventObject.
Syntax:public EventObject(Object source)
public Object getSource(): Returns the object on which the event initially occurred.
public String toString(): Returns a String representation of this EventObject.
public int getID(): Returns the Integer value corresponding to the type of event.