Java instanceof
Java instanceof In Java, instanceof is a keyword used for checking if a reference variable contains a given type of object reference or not(class or subclass or interface).It is known as a comparison operator where the instance is getting compared to type returning boolean true or false as in Java we do not have 0 and 1 […]