Multiple choice technology programming languages

What is "instanceOf" ?

  1. an operator

  2. a method

  3. nothing

  4. a keyword in Java

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

instanceof is a binary operator in Java used to check if an object is an instance of a specific class or implements an interface. It returns a boolean value and is commonly used in type-checking scenarios before casting.