InterviewSolution
Saved Bookmarks
| 1. |
Which of these methods can be used to know the type of focus change?(a) typeFocus()(b) typeEventFocus()(c) isTemporary()(d) isPermanent()I got this question in an online quiz.I would like to ask this question from ComponentEvent, ContainerEvent & FocusEvent Class topic in section Event Handling of Java |
|
Answer» CORRECT answer is (c) isTemporary() Explanation: There are TWO TYPES of focus events – permanent and temporary. The isTemporary() METHOD indicates if this focus change is temporary, it RETURNS a Boolean value. |
|