title: Compile error getting class with getClass()
body: <p>I'm learning about <code>getClass</code> and how it works.</p>
  
  <p>I read that: 
  <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html" rel="nofollow">http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html</a></p>
  
  <p>but i don't really understand why that fails:</p>
  
  <pre><code>boolean b;
  Class c = b.getClass();
  </code></pre>
  
  <p>Can anyone explain to me why it gives me an error?</p>