SCJP 6 83%
Working on SCWCD/OCPJWCD
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
By Ananth, Bangalore
Anand Shrivastava
SCJA
Originally posted by Raphael Rabadan:
You are getting StackOverflowError because of a recursive instatiation of an InterClass object where it has #line 1.
When you instantiate a InterClass, it will instantiate a instance variable also of InterClasss, and this instance variable will also have a instance variable os InterClass being instantiated.. and it will keep going, until you get StackOverflowError.
I hope it helps, if not, say and I'll try to make the point more clear.
By the way, try to use the code like this next time:
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Anand Shrivastava
SCJA
Originally posted by Anand Shrivastava:
I could not follow it still. Kindly illustrate it a bit graphically.
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Anand Shrivastava
SCJA