Which option, containing statement(s), inserted at line 3, creates the file and sets its attributes to hidden and read-only?

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?

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);



Leave a Reply 0

Your email address will not be published. Required fields are marked *