instanceof java

Let’s learn instanceof 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 class Example {…

Read More instanceof java