Java Basic
- Which of these interfaces define four methods?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
ComponentListener defines four methods componentResized(), componentMoved(), componentShown() and componentHidden().
- Which of these interfaces define a method actionPerformed()?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
ActionListener defines the actionPerformed() method that is invoked when an adjustment event occurs.
- Which of these interfaces handles the event when a component is added to a container?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The ContainerListener defines methods to recognize when a component is added to or removed from a container.
- Which of these packages contains all the event handling interfaces?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
java.awt.event
- Which of these is superclass of WindowEvent class?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
ComponentEvent is superclass of ContainerEvent, FocusEvent, KeyEvent, MouseEvent and WindowEvent.