This week's book giveaway is in the Jobs Discussion forum. We're giving away four copies of Developer Career Masterplan: Build your path to senior level and beyond with practical insights from industry experts and have Heather VanCura and Bruno Souza on-line! See this thread for details.
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.