title: Object.class/object.getClass() (what is the difference)
body: <p><code>Customer.class</code> and <code>cust.getClass()</code> <strike>work, but <code>cust.class</code> does not</strike>?  What is the difference?</p>
  
  <pre><code>public class Customer() {
  
  }
  
  
  public class Test {
  
      public Test() {
          Customer cust = new Customer();
  
          test(Customer.class);
          test(cust.getClass());
      }
  
  
      public &lt;T&gt; void test(Class&lt;T&gt; clazz) {
          System.out.println(clazz);
      }
  
  }
  </code></pre>