What is the preferred way to handle an object’s events in Java 2?
A. Override the objects handleEvent( ) method.
B. Add one or more event listeners to handle the events.
C. Have the object override its processEvent( ) methods.
D. Have the object override its dispatchEvent( ) methods.
Answer:B
What is the preferred way to handle an object’s events in Java 2?
A. Override the objects handleEvent( ) method. B. Add one or more event listeners to handle the events. C. Have the object override its processEvent( ) methods. D. Have the object override its dispatchEvent( ) methods.