Question
Which of these is method for testing whether the specified element is a file or a directory?
Which of these is method for testing whether the specified element is a file or a directory?
Answer: Option B
Was this answer helpful ?
isFile() returns true if called on a file and returns false when called on a directory.
Was this answer helpful ?
Submit Solution