Java Basic


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











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    WindowEvent is generated when a window is activated, closed, deactivated, deiconfied, iconfied, opened or quit.


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











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    AdjustmentEvent is generated when a scroll bar is manipulated.



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











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    EventObject class is a super class of all the events and is defined in java.util package.


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











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    getID() can be used to determine the type of an event.



  1. Event class is defined in which of these libraries?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    java.util