You Are Here::Home > JAVA > Operators -
Discussion
Q.
The ________ operator is defined to know about an object's relationship with a class. It evaluates totrue, if the object or array is an instance of the specified type; otherwise it returns false.
A.
instance
B.
object
C.
instanceof
D.
all the above
Answer:
Option
C
Explaination:
The instanceof operator is defined to know about an object's relationship with a class. It evaluates totrue, if the object or array is an instance of the specified type; otherwise it returns false.