In answer to question 22 (Chapter 9: NIO.2) there is:
The APPEND option creates the file if it does not exist...
It refers to this code:
If the file does not exist, function
newBufferedWriter will create it if:
no option at all is present (in this case method works as if the CREATE, TRUNCATE_EXISTING, and WRITE options are present; link to java docs)option for creating is present (CREATE/CREATE_NEW)
Since
StandardOpenOption.APPEND is already present, option for creating file must by written explicitly. Otherwise
NoSuchFileException is thrown when file does not exist.
Therefore
option B is not correct and option C is correct.