MCQ
Which of the following constructor File class provides to refer a file or a directory?
  • A
    File (String path)
  • B
    File (String directory path, string file_name)
  • C
    File (File directory, string file_name)
  • All of these

Answer

Correct option: D.
All of these
All of these

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free