About Question enthuware.ocpjp.v7.2.1539 :
Posted: Mon Dec 01, 2014 10:58 am
Userprincipal and StandardOpenOption is not mentioned in the Oracle OCP 7 study guide book. May it still occur (similar question) in the real exam?
Java Certification Resources and Java Discussion Forum
https://enthuware.com/forum/
I don't understand what you mean by this? Are you saying this is true for the whole combination of StandardOpenOption or just for the WRITE option alone???This is same as option 3. The WRITE option is redundant in this case because the file already exists. Had the file not been present, it would have thrown java.nio.file.NoSuchFileException.