title: Custom String representation of an Object in Java
body: <p>Is there any way to change how an <code>Object</code> represents itself as a <code>String</code>?</p>
  
  <p>For example, having <code>System.out.println(new JLabel());</code> output <code>Empty JLabel</code>.</p>