1.

Which method can be used to check fileAccessiblity?(a) isReadable(path)(b) isWritable(path)(c) isExecutable(path)(d) isReadable(path), isWritable(path), and isExecutable(path)I have been asked this question in an international level competition.I'm obligated to ask this question of File and Directory topic in division Autoboxing & Miscellaneous of Java

Answer»

The CORRECT OPTION is (d) isReadable(PATH), isWritable(path), and isExecutable(path)

To ELABORATE: FILE accessibilty can be checked usingisReadable(Path), isWritable(Path), and isExecutable(Path).



Discussion

No Comment Found

Related InterviewSolutions