This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Q on Label statements

 
Win jones
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I have two questions on Label statements they are

1)First one


Output compilation error not a loop label: one continue one;

(2) The second doubt that I have is in this piece of code


Output: - compilation error two not recognized
 
Joe Borderi
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer to both your questions can be answered by following the rules for valid labels. Briefly, what can be labeled?
 
Win jones
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for taking the time, can you point me JLS where it talks about what can be labelled I was unable to find much there ?

thanks again for your post
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic