I think he is not joking, but he wants you to prove it to yourself.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Joined: Jul 15, 2003
Whoops, sorry about that...I wasn't even being sarcastic, although I can be! I meant that yeah, Java can definitely handle nesting with loops. Try it out...how would you initialize a matrix of numbers? Say four columns across, and four rows down, and initialize them all to zero, or whatever you want...you'll have to do a bit of nesting...but you can definitely nest as much as you want, actually.
I wonder about the "unlimited" part. I suspect that there is probably some limit. At the very least, this limit is based on the amount of memory in your machine that is available for the compiler. However, even if there is a hard limit, it is probably rather large. In this case, the nesting will work fine. If you are interested in trying to see if there is a limit, I would suggested making A LOT of nested loops and/or if statments. By "a lot", I would guess more than 255. (Typically I would advise to NOT write real code this way, but it can be an interesting exercise to see if there is an actual limit.) Also, you can check out the Java Language Specification to see what it says on this matter.