AJP Unit-3
14 Questions
3 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

________ is super class of all the events.

  • EventObjeet (correct)
  • EventClass
  • AetionEvent
  • ItemEvent

Which of these packages contains all the classes and methods required for even handling in Java?

  • java.applet
  • java.awt
  • java.event
  • java.awt.event (correct)

Which of these events is generated when the a window is closed?

  • WindowEvent (correct)
  • ActionEvent
  • KeyEvent
  • AdjustmentEvent

________method are used to register a keyboard event listener

<p>addKeyListener() (C)</p> Signup and view all the answers

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

<p>getValue() (A)</p> Signup and view all the answers

A MenuItem object can generate __________ events.

<p>ActionEvent (B)</p> Signup and view all the answers

A source generates an event and sends it to ___________ listeners that can handle the event

<p>One or more (C)</p> Signup and view all the answers

A ________________________ is generated when a component is added to or removed from a container.

<p>ContainerEvent (B)</p> Signup and view all the answers

ActionEvent Class is used for Which Control ?

<p>Button , List ,MenuItem (D)</p> Signup and view all the answers

Adapter class belongs to the package

<p>java.awt.event (A)</p> Signup and view all the answers

Adapter Class provides_____________________________

<p>Empty implementation of all methods of a listener (C)</p> Signup and view all the answers

An event is generated when the internal state of the event source is ___________.

<p>Changed (B)</p> Signup and view all the answers

An object that would like to be notified of and respond to an event is

<p>EventListener (A)</p> Signup and view all the answers

At the root of the Java event class hierarchy is ___________which is the superclass for all event

<p>EventObject (C)</p> Signup and view all the answers

More Like This

Java Event Handling
12 questions

Java Event Handling

RespectableBegonia avatar
RespectableBegonia
Java Events and Handling
30 questions

Java Events and Handling

ContrastyMoldavite6567 avatar
ContrastyMoldavite6567
Java Applets and Event Handling Quiz
45 questions
Use Quizgecko on...
Browser
Browser