adplus-dvertising
frame-decoration

Question

How can we get the size of specified file?

a.

capacity(path)

b.

size(path)

c.

length(path)

d.

Path.size()

Posted under Java Programming

Answer: (b).size(path)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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

Similar Questions

Discover Related MCQs

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?

Q. What data structure should be used when number of elements is fixed?

Q. What causes the program to exit abruptly and hence its usage should be minimalistic?

Q. Which one of the following causes memory leak?

Q. Which of the following is a best practice to measure time taken by a process for execution?