Valid 1Z0-804 Dumps shared by ExamDiscuss.com for Helping Passing 1Z0-804 Exam! ExamDiscuss.com now offer the newest 1Z0-804 exam dumps, the ExamDiscuss.com 1Z0-804 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 1Z0-804 dumps with Test Engine here:
Given the code fragment: And a DOS-based file system: Which option, containing statement(s), inserted at line 3, creates the file and sets its attributes to hidden and read-only?
Correct Answer: D
Explanation/Reference: Explanation: You can set a DOS attribute using the setAttribute(Path, String, Object, LinkOption...) method, as follows: Path file = ...; Files.setAttribute(file, "dos:hidden", true); Note: setAttribute public static Path setAttribute(Path path, String attribute, Object value, LinkOption... options) throws IOException Sets the value of a file attribute. Reference:Interface DosFileAttribute