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 methods is used to get x coordinate of the mouse?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
getX() and getY() are used to obtain X AND Y coordinates of the mouse.
- MouseEvent is subclass of which of these classes?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
InputEvent
- 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.
- Which of these are integer constants of TextEvent class?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
TextEvent defines a single integer constant TEXT_VALUE_CHANGED.