title: If we add a super() in a parent class constructor, which class will this super() invoke while creating an object of the sub class?
body: <p>In the below example which class will the super() will call in the Shape constructor while creating an object of Square?</p>
  
  <pre><code>package com.company;
  
  class Shape {
      public Shape() {
          super();
          System.out.println("inside Shape class default constructor");
      }
  }
  
  class Rectangle extends Shape {
      public Rectangle() {
          super();
          System.out.println("inside Rectangle class default constructor");
      }
  }
  
  class Square extends Rectangle {
      public Square() {
          super();
          System.out.println("inside Square class default constructor");
      }
  }
  
  public class Ex2 {
      public static void main(String[] args) {
          Square sq = new Square();
      }
  }
  </code></pre>