Multiple listeners are added to component events will be processed - Java

Q.  Which of the following statements are correct? (Java)
- Published on 26 Jun 15

a. If multiple listeners are added to a component only events for the last listener added will be processed
b. If multiple listeners are added to a component the events will be processed for all but with no guarantee in the order
c. Adding multiple listeners to a comnponent will cause a compile time error
d. You can not remove or add listeners to a component.

ANSWER: If multiple listeners are added to a component the events will be processed for all but with no guarantee in the order
 
Listeners are known as interfaces. Whenever a listener is created all the methods of the listener should be implemented.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)