MCQ
Which of the following is a statement to create a file charfilel.txt by using file object named fwobject?
  • File Writer fwobject = new File Writer (“charfilel .txt”);
  • B
    fwobject = new File Writer (“char filel.txt”);
  • C
    fwobject = File Writer (“char filel.txt”);
  • D
    None of these

Answer

Correct option: A.
File Writer fwobject = new File Writer (“charfilel .txt”);
File Writer fwobject = new File Writer (“charfilel .txt”);

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