When you try to print and object, the toString() method is called, but your class StringObject doesn't override the toString() method, so it uses the one inherited from Object, which prints this
pattern of the type of the object plus @ plus hash code, as you can see in the
Java documentation.
If you override the method toString, you can have another result, like this: