Quantcast
Channel: Programmers Heaven Forums RSS Feed
Viewing all articles
Browse latest Browse all 2703

stackoverflow

$
0
0
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();
}


Viewing all articles
Browse latest Browse all 2703

Trending Articles