title: Whats the difference between subClass sc = new subClass() and superClass sc = new subClass?
body: <pre><code>class superClass {}
  
  class subClass extends superClass{}
  
  public class test
  {
  
      public static void main()
  
  {
  
      superClass sc1 = new subClass();
      subClass sc2 = new subClass();
      //whats the difference between the two objects created using the above code?
  
  }
  }
  </code></pre>