InterviewSolution
Saved Bookmarks
| 1. |
What is instanceOf operator used in Java? |
|
Answer» INSTANCEOF operator is used in OBJECT REFERENCE variables. In this, the operator will check the class type or INTERFACE type of an object. It is WRITTEN as follows: ( Object reference variable ) instanceof (class/interface type) |
|