What is an instanceof operator in java?
Ask by Sumit Kesarwani
Updated 23 Sep 2020
Instanceof is an object reference operator and returns true if the object on the left-hand side is an instance of the glass given to the right hand side. This operator allows determining whether the object belongs to a particular class or not.