why this is giving "java.lang.StackOverflowError"???
the code is:
public class innerEx1 {
class inner {
inner() {
System.out.println("in inner");
}
inner in = new inner();
}
public static void main(
String[] args) {
new innerEx1().new inner();
}
}
can anybody plz explain this??
thanks in Advance
krishna.