[HD Pg 171, Sec. 7.7.2 - what-is-a-label]

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
flex567
Posts: 202
Joined: Mon Apr 02, 2018 8:40 am
Contact:

[HD Pg 171, Sec. 7.7.2 - what-is-a-label]

Post 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?

admin
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]

Post by admin »

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.

flex567
Posts: 202
Joined: Mon Apr 02, 2018 8:40 am
Contact:

Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]

Post 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");
}

admin
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]

Post by admin »

Yes, I see your point. Should be made clear.
If you like our products and services, please help us by posting your review here.

Username987654
Posts: 95
Joined: Sat Dec 26, 2015 6:37 pm
Contact:

Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]

Post 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].)

admin
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]

Post by admin »

1. I see that using a label on a single statement is pointed out in the book. See image
test.png
test.png (92.52 KiB) Viewed 1638 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.
If you like our products and services, please help us by posting your review here.

Username987654
Posts: 95
Joined: Sat Dec 26, 2015 6:37 pm
Contact:

Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]

Post 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!

admin
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]

Post 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.
If you like our products and services, please help us by posting your review here.

Username987654
Posts: 95
Joined: Sat Dec 26, 2015 6:37 pm
Contact:

Re: [HD Pg 171, Sec. 7.7.2 - what-is-a-label]

Post 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?

admin
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]

Post by admin »

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.


Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 122 guests