What is a listener in context to event handling?
A. A listener is a variable that is notified when an event occurs.
B. A listener is a object that is notified when an event occurs.
C. A listener is a method that is notified when an event occurs.
D. None of the mentioned
Answer:B
What is a listener in context to event handling?
A. A listener is a variable that is notified when an event occurs. B. A listener is a object that is notified when an event occurs. C. A listener is a method that is notified when an event occurs. D. None of the mentioned
Explanation: A listener is a object that is notified when an event occurs. It has two major requirements first, it must have been registered with one or more sources to receive notification about specific event types, and secondly it must implement methods to receive and process these notifications.