File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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??
Don't get me started about those stupid light bulbs.
subject: Multiple Labels
Similar Threads
about "for" and "if-else" ??
if loop inside for loop problem
If construct?
What is this?
for Loop with y++ etc...