in Education by
Which of these is superclass of WindowEvent class? (a) WindowEvent (b) ComponentEvent (c) ItemEvent (d) InputEvent The question was posed to me during a job interview. I need to ask this question from MouseEvent, TextEvent & WindowEvent Class topic in chapter Event Handling of Java Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Correct answer is (b) ComponentEvent Easiest explanation: ComponentEvent is superclass of ContainerEvent, FocusEvent, KeyEvent, MouseEvent and WindowEvent.

Related questions

0 votes
    Which of these are constants defined in WindowEvent class? (a) WINDOW_ACTIVATED (b) WINDOW_CLOSED (c) WINDOW_DEICONIFIED ... of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these methods is used to obtain the object that generated a WindowEvent? (a) getMethod() (b) ... Event Handling of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Event class is defined in which of these libraries? (a) java.io (b) java.lang (c) java.net (d) ... division Event Handling of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these class is super class of all the events? (a) EventObject (b) EventClass (c) ActionEvent (d) ... Event Handling of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these are integer constants defined in ActionEvent class? (a) ALT_MASK (b) CTRL_MASK (c) SHIFT_MASK (d ... Handling of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these are integer constants of ComponentEvent class? (a) COMPONENT_HIDDEN (b) COMPONENT_MOVED (c) ... of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these are integer constants of TextEvent class? (a) TEXT_CHANGED (b) TEXT_FORMAT_CHANGED (c) TEXT_VALUE_CHANGED ... of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these methods is defined in MouseMotionAdapter class? (a) mouseDragged() (b) mousePressed() (c) ... Handling of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these packages contains all the classes and methods required for even handling in Java? (a) java.applet ... Handling of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these methods are used to register a keyboard event listener? (a) KeyListener() (b) addKistener() ( ... Event Handling of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these methods are used to register a mouse motion listener? (a) addMouse() (b) addMouseListener() ( ... Event Handling of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these methods can be used to determine the type of event? (a) getID() (b) getSource() (c) ... chapter Event Handling of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these events will be notified if scroll bar is manipulated? (a) ActionEvent (b) ComponentEvent (c) ... Event Handling of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these events is generated when a button is pressed? (a) ActionEvent (b) KeyEvent (c) WindowEvent (d ... Event Handling of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these methods can be used to obtain the command name for invoking ActionEvent object? (a) getCommand() ... Handling of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
...