Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these is method for testing whether the specified element is a file or a directory?
  2. A.
    IsFile()
    B.
    isFile()
    C.
    Isfile()
    D.
    isfile()

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment