Originally posted by Campbell Ritchie:
A label is not executable code, so you can put labels in all sorts of places.
Why you should want a label, now that's a different matter, unless it's "I just wanted to see what would happen," which is an adequate justification for anything, never mind how daft.
I don't think so,label can't be put any sorts of places:
it compiles error.label can only be put before for or while.
This is a
SCJP question,so I'm confused about that.