adplus-dvertising
frame-decoration

Question

Which method is used to create a directory with fileattributes?

a.

Path.create()

b.

Path.createDirectory()

c.

Files.createDirectory(path, fileAttributes)

d.

Files.create(fileAttributes)

Posted under Java Programming

Answer: (c).Files.createDirectory(path, fileAttributes)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which method is used to create a directory with fileattributes?

Similar Questions

Discover Related MCQs

Q. Which method can be used to check fileAccessiblity?

Q. How can we delete all files in a directory?

Q. How to copy the file from one location to other?

Q. How can we get the size of specified file?

Q. How to read entire file in one line using java 8?

Q. How can we create a symbolic link to file?

Q. How can we filter lines based on content?

Q. Which jar provides FileUtils which contains methods for file operations?

Q. Which feature of java 7 allows to not explicitly close IO resource?

Q. Which of the following is not a core interface of Hibernate?

Q. SessionFactory is a thread-safe object.

Q. Which of the following methods returns proxy object?

Q. Which of the following methods hits database always?

Q. Which of the following method is used inside session only?

Q. Which of the following is not a state of object in Hibernate?

Q. Which of the following is not an inheritance mapping strategies?

Q. Which of the following is not an advantage of using Hibernate Query Language?

Q. In which file database table configuration is stored?

Q. Which of the following is not an advantage of Hibernate Criteria API?

Q. What should the return type of method where there is no return value?