StackOverflowError when calling method of subclass object? : <p>Executing the Test class gives a StackOverFlow error :( </p>

<p>Parent class : </p>

<pre><code>package Pack;

public class Alpha {
  protected void sayHi() {
    System.out.println("Hi...from Alpha");
  }
}
</code></pre>

<p>Child class : </p>

<pre><code>import Pack.Alpha;

public class AlphaSub extends Alpha {
  AlphaSub sb=new AlphaSub() ;

  void hi() {
    sb.sayHi() ;

  }
}
</code></pre>

<p>Test class : </p>

<pre><code>public class test {
public static void main(String[] args) {

    AlphaSub ob=new AlphaSub() ;
    ob.hi() ;
}
</code></pre>

<p>}</p>
