what happens when you print an object in java code example Example: print object java System.out.println(myObject); // invokes myObject.toString()