Beginner
Java
Q19 / 100
What does the instanceof operator do?
Correct! Well done.
Incorrect.
The correct answer is C) Tests whether an object is an instance of a given type
C
Correct Answer
Tests whether an object is an instance of a given type
Explanation
instanceof returns true if the object on the left is an instance of the class or interface on the right.
Progress
19/100