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?
A.
DOSFileAttributes attrs = Files.setAttribute(file,”dos:hidden”,”dos: readonly”)
Files.createFile(file, attrs)
B.
Files.craeteFile(file); Files.setAttribute(file,”dos:hidden”,”dos:readonly”);
C.
Files.createFile(file,”dos:hidden”,”dos:readonly”);
D.
Files.createFile(file); Files.setAttribute(file,”dos:hidden”, true);
Files.setAttribute(file,”dos:readonly”, true);