Select the rght answer? Which of the following statements about event handling in JDK 1.1 and later are true? a) A class can implement multiple listener interfaces b) If a class implements a listener interface, it only has to overload the methods it uses c) All of the MouseMotionAdapter class methods have a void return type. I think a and b should be right. Please check if I am wrong. Regards Jyotsna
- if a class implements a listener interface, it has to implement the methods of that interface. It must also implement all interface methods (even with just empty bodies) or else you need to declare the class as abstract. If your class extends one of the adapter classes, then you would only need to override the methods you use. - c is true: all MouseMotionAdapter class methods have a void return type.