in the following program i have called the anonymous class of dev class.
i am getting stack over flow error as :
Exception in
thread "main" java.lang.StackOverflowError
at dev$1.<init>(dev.java:17)
at dev.<init>(dev.java:16)
at dev$1.<init>(dev.java:17)
at dev.<init>(dev.java:16)
at dev$1.<init>(dev.java:17)
at dev.<init>(dev.java:16)
at dev$1.<init>(dev.java:17)
at dev.<init>(dev.java:16)
at dev$1.<init>(dev.java:17)
at dev.<init>(dev.java:16)
can some one tell what is going wrong...is it because the jvm is not able to decide which of the 2 desigs() it has to load in the memory when its object is created in the main..??