About Question enthuware.ocpjp.v8.2.1897 :
Moderators: Site Manager, fjwalraven
-
- Posts: 56
- Joined: Tue Feb 21, 2017 4:24 pm
- Contact:
About Question enthuware.ocpjp.v8.2.1897 :
Question about option 2: Is it possible for items in the stream to lose their original order if the stream is switched to parallel and then back to sequential again?
-
- Site Admin
- Posts: 10045
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1897 :
Official documentation doesn't mention anything about that. Logically, once you make the stream parallel, I don't think there is any guarantee about the original order anymore even if you later make it sequential.
Also, since there is no official description of the behavior in this situation, one should not assume that the original will be preserved.
HTH,
Paul.
Also, since there is no official description of the behavior in this situation, one should not assume that the original will be preserved.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 56
- Joined: Tue Feb 21, 2017 4:24 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1897 :
I asked this because I found the correct option (option 2) to be ambiguous. The question asks
The original stream is sequential. The correct option converts it to parallel then back to sequential again, with the possibility of values being ordered differently than in the original stream. So, while the values themselves will be the same as in the original stream, their order might be different, and this, to my understanding, "affects the output".Which of the following options can be used to replace line at //2 without affecting the output?
-
- Site Admin
- Posts: 10045
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1897 :
You are right.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 15 guests