This might be a very basic question but still I am not able to figure out why is the foll code giving stackoverflow exception in main??
public class HelloWorld{
public static void main(String []args)
{
System.out.println("Hello World");
Animal c = new Animal();
}
}
class Animal
{
Animal e = new Animal();
}