Programming, Object Oriented, Java.
print(collection2); (1) elements will be printed as per the natural order Program output s = A s = B s = C s = D We just saw that print() method’s behavior is determined by the actual type of object passed to it at run time. That’s polymorphism! Important Facts Other than objects of type