adplus-dvertising
frame-decoration

Question

Which of these methods can be used to determine the type of event?

a.

getID()

b.

getSource()

c.

getEvent()

d.

getEventObject()

Posted under Java Programming

Answer: (a).getID()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of these methods can be used to determine the type of event?

Similar Questions

Discover Related MCQs

Q. Which of these class is super class of all the events?

Q. Which of these events will be notified if scroll bar is manipulated?

Q. Which of these events will be generated if we close an applet’s window?

Q. Which of these events is generated when a button is pressed?

Q. Which of these methods can be used to obtain the command name for invoking ActionEvent object?

Q. Which of these are integer constants defined in ActionEvent class?

Q. Which of these methods can be used to know which key is pressed?

Q. Which of these events is generated by scroll bar?

Q. Which of these methods can be used to determine the type of adjustment event?

Q. Which of these methods can be used to know the degree of adjustment made by the user?

Q. Which of these constant value will change when the button at the end of scroll bar was clicked to increase its value?

Q. Which of these events is generated when the size of an event is changed?

Q. Which of these events is generated when the component is added or removed?

Q. Which of these methods can be used to obtain the reference to the container that generated a ContainerEvent?

Q. Which of these methods can be used to get reference to a component that was removed from a container?

Q. Which of these are integer constants of ComponentEvent class?

Q. Which of these events is generated when computer gains or loses input focus?

Q. FocusEvent is subclass of which of these classes?

Q. Which of these methods can be used to know the type of focus change?

Q. Which of these is superclass of ContainerEvent class?