Java Basic
- Which of these are constants defined in WindowEvent class?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
WindowEvent class defines 7 constants – WINDOW_ACTIVATED, WINDOW_CLOSED, WINDOW_OPENED, WINDOW_DECONIFIED, WINDOW_CLOSING, WINDOW_DEACTIVATED, WINDOW_ICONIFIED.
- Which of these interfaces define a method itemStateChanged()?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
ItemListener
- 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 methods will respond when you click any button by mouse?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
when we click a button, first we enter the region of button hence mouseEntered() method responds then we press the button which leads to respond from mouseClicked() and mousePressed().