Multiple choice technology programming languages

instanceof operator can take a class, an interface or an array type as an argument

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The instanceof operator in Java tests whether an object is an instance of a specified class, interface, or array type. It returns true if the object is an instance of the specified type or any subtype. This is a fundamental type-checking mechanism in Java's type system.