wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Q on Label statements 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 "Q on Label statements" Watch "Q on Label statements" New topic
Author

Q on Label statements

Win jones
Ranch Hand

Joined: Dec 12, 2004
Posts: 38
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

Joined: Oct 23, 2004
Posts: 151
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

Joined: Dec 12, 2004
Posts: 38
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
 
Don't get me started about those stupid light bulbs.
 
subject: Q on Label statements
 
Similar Threads
Section 2 mock test questions
Flow Control
loop
Continue Label Question
Label???