This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Multiple Labels Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Multiple Labels" Watch "Multiple Labels" New topic

Multiple Labels

Swati Singhal
Ranch Hand

Joined: Dec 08, 2003
Posts: 31
In Java the following statement is perfectly legal:

We can use either break
or break
in the above code to break out of the loop.
I would like to know why and where do we need Multiple Labels in a statement?
What are the advantages??
GeeCON Prague 2014
subject: Multiple Labels