• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Labels

 
Swati Singhal
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Java the following statement is perfectly legal:

We can use either break
A
or break
B
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??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic