Home » JAVA Programming » Files and I/O » Question
  1. Which of these is method for testing whether the specified element is a file or a directory?
    1. isfile()
    2. Isfile()
    3. IsFile()
    4. isFile()
    5. None of these
Correct Option: D

isFile() returns true if called on a file and returns false when called on a directory.



Your comments will be displayed only after manual approval.