Java - Interview Questions and Answers on Listeners

Q1.  Example of Observer Design Pattern ?

Ans. Listeners.

Q2.  What is a Listener ?

Ans. In GUI programming, an object that can be registered to be notified when events of some given type occur. The object is said to “listen” for the events.