1.

How can we get the size of specified file?(a) capacity(path)(b) size(path)(c) length(path)(d) Path.size()I got this question during an online exam.Question is taken from File and Directory in chapter Autoboxing & Miscellaneous of Java

Answer»

Right answer is (b) SIZE(PATH)

Easiest explanation: size(Path) RETURNS the size of the specified FILE in BYTES.



Discussion

No Comment Found

Related InterviewSolutions