Home » JAVA Programming » Java Basic » Question
  1. Which of these methods can be used to know which key is pressed?
    1. getActionEvent()
    2. getKey()
    3. getModifier()
    4. getActionKey()
    5. None of these
Correct Option: C

The getModifiers() methods returns a value that indicates which modifiers keys (ALT, CTRL, META, SHIFT) were pressed when the event was generated.



Your comments will be displayed only after manual approval.