Java Basic


  1. Which of these is a superclass of all Adapter classes?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    All Adapter classes extend Applet class.


  1. Which of these methods is defined in MouseMotionAdapter class?









  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The MouseMotionAdapter class defines 2 methods – mouseDragged() and mouseMoved.



  1. Which of these methods will be invoked if a character is entered?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    keyTyped()


  1. Which of these methods will respond when you click any button by mouse?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    when we click a button, first we enter the region of button hence mouseEntered() method responds then we press the button which leads to respond from mouseClicked() and mousePressed().



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











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    ItemListener