instanceof operator in Java
Java provides a special operator known as ‘instanceof‘ operator. This operator helps us to determine whether an object belongs to a particular class or not.
Java provides a special operator known as ‘instanceof‘ operator. This operator helps us to determine whether an object belongs to a particular class or not.