I was trying out to run the below code sample but getting StackOverflow error. It seems to stuck up in the infinite loop. Can anybody help me out in knowing what's going on in here?
Please find below code snippet
public class ConstructorExample {
private ConstructorExample c1 = new ConstructorExample();
public ConstructorExample(){
throw new RuntimeException();
}
public static void main(String[] str){
ConstructorExample c = new ConstructorExample();
}
}