[HD-OCP17/21-Fundamentals Pg 0, Sec. 21.3.2 - quiz]

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

Moderator: admin

Post Reply
joaoclopes
Posts: 35
Joined: Mon Sep 23, 2024 4:49 pm
Contact:

[HD-OCP17/21-Fundamentals Pg 0, Sec. 21.3.2 - quiz]

Post by joaoclopes »

Hello,

On the explanation it says:
Therefore, options A and D are correct. B, C, and E are incorrect because if the first element in the stream is an empty string, it will be dropped, which means, the first element of the resulting stream can never be an empty string.
Shouldn't it be " options A, D and E are correct. B and C are incorrect"?

Because option E is correct, right? It can never print an empty String first because it would be dropped by the Predicate.

Thanks

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD-OCP17/21-Fundamentals Pg 0, Sec. 21.3.2 - quiz]

Post by admin »

Yes, you are right. E is correct.
Duly noted.
thank you for your feedback!

joaoclopes
Posts: 35
Joined: Mon Sep 23, 2024 4:49 pm
Contact:

Re: [HD-OCP17/21-Fundamentals Pg 0, Sec. 21.3.2 - quiz]

Post by joaoclopes »

No problem! Glad I could help!

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests