Java Basic
- Which of these is a superclass of all Adapter classes?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
All Adapter classes extend Applet class.
- Which of these methods is defined in MouseMotionAdapter class?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The MouseMotionAdapter class defines 2 methods – mouseDragged() and mouseMoved.
- Which of these methods will be invoked if a character is entered?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
keyTyped()
- Which of these methods will respond when you click any button by mouse?
-
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().
- Which of these interfaces define a method itemStateChanged()?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
ItemListener