title: Does Java have a method to inspect object type?
body: <p>In Javascript, if you want to inspect some object in chrome, </p>
  
  <p><code>console.log(object)</code> will printout variables, and methods about the object.</p>
  
  <p>Ruby also has <code>object.inspect</code> which returns basic information about the object.</p>
  
  <p>What code should I use in Java to inspect an object?</p>