Which of these methods can be used to know which key is pressed?
A. getKey()
B. getModifier()
C. getActionKey()
D. getActionEvent()
Answer:A
Which of these methods can be used to know which key is pressed?
A. getKey() B. getModifier() C. getActionKey() D. getActionEvent()
Explanation: The getModifiers() methods returns a value that indicates which modifiers keys (ALT, CTRL, META, SHIFT) were pressed when the event was generated.