title: java - Object and ".class" use
body: <p>I am a newbie and I have covered all the basic concepts of Java. Till now, I have come across examples where object references are created using Object class and using the ".class" syntax.</p>
  
  <p>I tried searching for explanation on how these 2 concepts are used and I am not getting a clear picture.</p>
  
  <p>All I see is, yes we can create a reference to Object. <strong>But how/what is this reference used for?</strong></p>
  
  <p>And for <strong>.class</strong> syntax, I keep seeing the term 'Reflection' but what really happens when I use this syntax on an exsting class like <strong>existingclass.class</strong>? And is it just to use the methods/data with in the &lt;<strong>existingclass</strong>> without creating an instance/object?</p>
  
  <p>Examples would be appreciated.</p>