Event Listeners Interfaces(Computer Science > Java Program ) Questions and Answers
Explanation:-
Answer: Option A. -> AppletAll Adapter classes extend Applet class.
Explanation:-
Answer: Option D. -> All of the mentionedWindowEvent class defines 7 constants - WINDOW_ACTIVATED, WINDOW_CLOSED, WINDOW_OPENED, WINDOW_DECONIFIED, WINDOW_CLOSING, WINDOW_DEACTIVATED, WINDOW_ICONIFIED.
Explanation:-
Answer: Option A. -> mouseDragged()The MouseMotionAdapter class defines 2 methods – mouseDragged() and mouseMoved.
Explanation:-
Answer: Option C. -> keyTyped()None.
Explanation:-
Answer: Option D. -> All of the mentionedwhen we click a button, first we enter the region of button hence mouseEntered() method
Explanation:-
Answer: Option D. -> ItemListenerNone.
Explanation:-
Answer: Option A. -> ComponentListenerComponentListener defines four methods componentResized(), componentMoved(),
componentShown() and componentHidden().
Explanation:-
Answer: Option C. -> java.awt.eventNone.
Explanation:-
Answer: Option C. -> ActionListenerActionListener defines the actionPerformed() method that is invoked when an
adjustment event occurs.
Explanation:-
Answer: Option B. -> ContainerListenerThe ContainerListener defines methods to recognize when a component is added to
or removed from a container.