This method is used since super is a keyword which refers the super or parent class object or instance variable so super.move() method invokes the super class method.
(boyB instanceof Friend) condition checks if boyB is a type of Friend class or not which results in “False” .
instanceof operator returns true or false by checking whether a given object is a type of specified class or not.
boyB is an object of super class Human and Friend is a sub class of Human. So super class object boyB can not be type of sub class Friend so the condition (boyB instanceof Friend) returns False.