Java Basic


  1. Which of these interfaces define four methods?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    ComponentListener defines four methods componentResized(), componentMoved(), componentShown() and componentHidden().


  1. Which of these interfaces define a method actionPerformed()?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    ActionListener defines the actionPerformed() method that is invoked when an adjustment event occurs.



  1. Which of these interfaces handles the event when a component is added to a container?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The ContainerListener defines methods to recognize when a component is added to or removed from a container.


  1. Which of these packages contains all the event handling interfaces?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    java.awt.event



  1. Which of these is superclass of WindowEvent class?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    ComponentEvent is superclass of ContainerEvent, FocusEvent, KeyEvent, MouseEvent and WindowEvent.