Home » JAVA Programming » Java Basic » Question
  1. What is a listener in context to event handling?
    1. A listener is a method that is notified when an event occurs
    2. A listener is a variable that is notified when an event occurs
    3. A listener is a object that is notified when an event occurs
    4. All of above
    5. None of these
Correct Option: C

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.



Your comments will be displayed only after manual approval.