Question:
(a) Java does not support multiple inheritance but does provide the concept of ‘interface'. Explain how interfaces can help a programmer to implement multiple inheritance in their programs. Explain with suitable Java examples.
(b) What is an abstract class in Java? Describe the importance of implementing these classes in programs. Illustrate with an example of your own.
(c) Show the Java approach to event processing by explaining how event handling works in Java. Use an example to support your answer.
(d) Describe what is a ‘Listener' in Java using an appropriate example?