Problem:
(a) Show the Java approach to event processing by explaining how event handling works in Java. Make use of a suitable example to support your answer.
(b) Describe what is a ‘Listener' in Java using an appropriate example?
(c) Show the purpose and use of the Java Adapter classes. Use appropriate examples to support your answer.