title: Will extend create an object of its super class.?
body: <p>I am confused with this simple question. Can anyone help me with a valid answer.</p>
  
  <pre><code> public class SuperClass{
     public SuperClass(){
       // may or may not have a constructor for superclass
     }
   }
   public class SubClass extends SuperClass{
        // anything here
      public static void main(String args[]) 
      { 
         SubClass sub=new SubClass(); 
      }
   }
  </code></pre>
  
  <blockquote>
    <p>Now my question is if i am creating an object of the <code>SubClass</code> does
    it create an <strong><em>object</em></strong> of the <code>SuperClass</code>
    If yes why..??</p>
  </blockquote>
  
  <p>I know most of the people see this question as silly. But these are my questions.</p>
  
  <p><strong>It calls the constructor of the SuperClass so how does it do if an object is not created.?</strong></p>
  
  <p><strong>Does the extends increase the size of the class ?</strong> ie SuperClass+SubClass.!! </p>