when an object reference is passed to System.out.print,it
gives the class name (at least that's meaningful)
followed by the @ symbol, followed by the unsigned hexadecimal representation of
the object's hashcode.
but when an object of type string or Integer or List or Set or any of the collections is passed,it gives the content of that type