Programming, Object Oriented, Java.
java.lang.Object, all java objects are polymorphic i.e. they pass the IS-A test for their own type as well as for class Object. A reference variable’s type determines the methods that can be invoked on the object that variable is referencing to. In the example above, print() method can only invoke