Can you put a label before only one statement?A label is nothing but a name that you give to any block of statements or to statements that allow block of statements inside them (which means if, for, while, do-while, enhanced for, and switch statements).
[HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Moderator: admin
-
- Posts: 202
- Joined: Mon Apr 02, 2018 8:40 am
- Contact:
[HD Pg 171, Sec. 7.7.2 - what-is-a-label]
-
- Site Admin
- Posts: 10058
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Not sure what you mean. You can apply label to any number of statements.
If you like our products and services, please help us by posting your review here.
-
- Posts: 202
- Joined: Mon Apr 02, 2018 8:40 am
- Contact:
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
I didn't notice in the book that this is possible:
But I did read that this is possible:
Code: Select all
SOME_LABEL:Sytem.out.println(" ");
Code: Select all
SOME_LABEL: { //ok, because this is a block of statements
System.out.println("hello1");
System.out.println("hello2");
}
-
- Site Admin
- Posts: 10058
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Yes, I see your point. Should be made clear.
If you like our products and services, please help us by posting your review here.
-
- Posts: 95
- Joined: Sat Dec 26, 2015 6:37 pm
- Contact:
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
I completely missed the question (#25 Test 6) in enthuware.ocajp.i.v8.2.1121 based upon the specifics outlined in the book. Was it made clear? If so, how do I obtain the clarification/update? (Is my book too outdated?) Secondarily, I have noticed that the Enthuware mocks don't necessarily mirror the book and/or vice versa. Correct? (I'm not suggesting it should[, but it would be nice maybe].)
-
- Site Admin
- Posts: 10058
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
1. I see that using a label on a single statement is pointed out in the book. See image
2. The book covers all concepts required for the exam. Mock exams present the same concepts but in different ways and so it may feel that they go a step higher than the book. Also, because there are so many questions in the simulator, it is possible that a few questions in the question bank are based on points not covered in the book...either because the author didn't consider them too important or just ignored them.If you like our products and services, please help us by posting your review here.
-
- Posts: 95
- Joined: Sat Dec 26, 2015 6:37 pm
- Contact:
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
I don't see this clarification nor text in my Monday 4th February, 2019 Build 15.0 book. Thanks for the confirmation that the clarification was, indeed, made.
Please advise.Username987654 wrote: ↑Fri Jul 05, 2019 10:53 amIf so, how do I obtain the clarification/update? (Is my book too outdated?)
To your point:admin wrote: ↑Fri Jul 05, 2019 9:18 pm2. The book covers all concepts required for the exam. Mock exams present the same concepts but in different ways and so it may feel that they go a step higher than the book. Also, because there are so many questions in the simulator, it is possible that a few questions in the question bank are based on points not covered in the book...either because the author didn't consider them too important or just ignored them.
...& then follow up with my 817 Mocks purchase!Username987654 wrote: ↑Tue Jun 11, 2019 12:27 pmAlthough there's no (current) information on it, I'm still looking forward to Enthuware's 1Z0-817 sequel once I get past this current hurdle.
-
- Site Admin
- Posts: 10058
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Sent you the link to download the latest version. Please check your PM.Username987654 wrote: ↑Fri Jul 05, 2019 10:53 amIf so, how do I obtain the clarification/update? (Is my book too outdated?)
If you like our products and services, please help us by posting your review here.
-
- Posts: 95
- Joined: Sat Dec 26, 2015 6:37 pm
- Contact:
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Thanks. As written, I take it a labeled single statement is legal except when applied to a declaration and/or an expression. Labels are completely illegal for methods without any exclusions. This definitely would have gotten me past the aforementioned mock question. Is this the totality of what I missed out on from my earlier edition of the book as it relates to this posting?
-
- Site Admin
- Posts: 10058
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Yes, that is all you missed. Not too critical for the exam as the book notes.
If you like our products and services, please help us by posting your review here.
-
- Posts: 95
- Joined: Sat Dec 26, 2015 6:37 pm
- Contact:
Who is online
Users browsing this forum: Bing [Bot] and 122 guests