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()</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()</p> Signup and view all the answers

    A MenuItem object can generate __________ events.

    <p>ActionEvent</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</p> Signup and view all the answers

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

    <p>ContainerEvent</p> Signup and view all the answers

    ActionEvent Class is used for Which Control ?

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

    Adapter class belongs to the package

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

    Adapter Class provides_____________________________

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

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

    <p>Changed</p> Signup and view all the answers

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

    <p>EventListener</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</p> Signup and view all the answers

    More Like This

    Java AWT and Event Driven Programming Quiz
    10 questions
    Java Event Handling
    12 questions

    Java Event Handling

    RespectableBegonia avatar
    RespectableBegonia
    Java Events and Handling
    30 questions

    Java Events and Handling

    ContrastyMoldavite6567 avatar
    ContrastyMoldavite6567
    Use Quizgecko on...
    Browser
    Browser