InterviewSolution
Saved Bookmarks
| 1. |
Which of these methods can be used to know which key is pressed?(a) getKey()(b) getModifier()(c) getActionKey()(d) getActionEvent() |
|
Answer» The correct choice is (b) getModifier() The best I can explain: The getModifiers() methods returns a value that indicates which modifiers keys (ALT, CTRL, META, SHIFT) were pressed when the event was generated. |
|