Page 1 of 1
[HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Posted: Tue May 14, 2019 3:58 am
by flex567
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).
Can you put a label before only one statement?
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Posted: Tue May 14, 2019 4:35 am
by admin
Not sure what you mean. You can apply label to any number of statements.
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Posted: Tue May 14, 2019 5:40 am
by flex567
I didn't notice in the book that this is possible:
Code: Select all
SOME_LABEL:Sytem.out.println(" ");
But I did read that this is possible:
Code: Select all
SOME_LABEL: { //ok, because this is a block of statements
System.out.println("hello1");
System.out.println("hello2");
}
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Posted: Tue May 14, 2019 6:31 am
by admin
Yes, I see your point. Should be made clear.
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Posted: Fri Jul 05, 2019 10:53 am
by Username987654
admin wrote: ↑Tue May 14, 2019 6:31 am
Yes, I see your point. Should be made clear.
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].)
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Posted: Fri Jul 05, 2019 9:18 pm
by admin
1. I see that using a label on a single statement is pointed out in the book. See image

- test.png (92.52 KiB) Viewed 2012 times
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.
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Posted: Fri Jul 05, 2019 10:42 pm
by Username987654
admin wrote: ↑Fri Jul 05, 2019 9:18 pm
1. I see that using a label on a single statement is pointed out in the book. See imagetest.png
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.
Username987654 wrote: ↑Fri Jul 05, 2019 10:53 am
If so, how do I obtain the clarification/update? (Is my book too outdated?)
Please advise.
admin wrote: ↑Fri Jul 05, 2019 9:18 pm
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.
To your point:
Username987654 wrote: ↑Tue Jun 11, 2019 12:27 pm
Although 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.
...& then follow up with my 817 Mocks purchase!
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Posted: Fri Jul 05, 2019 11:14 pm
by admin
Username987654 wrote: ↑Fri Jul 05, 2019 10:53 am
If so, how do I obtain the clarification/update? (Is my book too outdated?)
Sent you the link to download the latest version. Please check your PM.
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Posted: Sat Jul 06, 2019 12:25 am
by Username987654
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?
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Posted: Sat Jul 06, 2019 2:51 am
by admin
Yes, that is all you missed. Not too critical for the exam as the book notes.
Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]
Posted: Sat Jul 06, 2019 9:12 am
by Username987654
Thanks