Page 1 of 1

enthuware.ocpjp.v8.2.1551 & enthuware.ocpjp.v8.2.1552

Posted: Mon Mar 13, 2017 7:06 am
by salmanawan
For these two questions:

Which of the following statements are valid usages of StandardOpenOption options that control how the file is opened?


Which of the following statements are valid usages of StandardOpenOption options that determine how the file is opened?


This common option, is correct for one and incorrect for other.

Code: Select all

new OpenOption[]{StandardOpenOption.READ, StandardOpenOption.SYNC}
Difference boils down to use of word 'control' vs. 'determine'..... can someone explain the difference a bit, cheers.

Re: enthuware.ocpjp.v8.2.1551 & enthuware.ocpjp.v8.2.1552

Posted: Mon Mar 13, 2017 7:13 am
by admin
It should be marked as correct in both. The explanation is correct though, "Ideally, this should be an invalid combination (because when a file is opened for ///READ///, there is nothing to synch) but it works."

thank you for your feedback!
Paul.