instanceof java

Let’s learn what is instanceof in java? instanceof java instanceof operator is used to check whether the object is an instance of specified type. Type can be a class or a subclass or an interface. instanceof operator returns either true or false. It is also known as comparison operator. Let’s see instanceof java example. public…

Read More instanceof java