Vidyalelo
Java Programming · Q7

Java Event Handling

Programming · Java Programming · question 7

Q7

In Java event handling, what is the purpose of the `getSource()` method of the `ActionEvent` class?

A.
It returns the object that generated the event
Answer
B.
It returns the event listener object
C.
It returns the event source
D.
It returns the event type

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board