title: Difference Between Object Type and Reference Type
body: <p>I was studying Polymorphism  from "Head First Java" and came to this concept. Can anyone  explain it please with an example?</p>
  
  <blockquote>
    <p>Compiler checks the class of reference type -- not the Object type.</p>
  </blockquote>
  
  <p>So what's the difference between Reference Type and Object Type?</p>