FileWriter and PrintWriter

Report a typo

Select all statements that will write the string Lorem ipsum dolor sit amet to the file.

Assume that file.txt is empty, fileWriter and printWriter are initialized as:

File file = new File("file.txt"); // some file
FileWriter fileWriter = new FileWriter(file);
PrintWriter printWriter = new PrintWriter(file);
Select one or more options from the list
___

Create a free account to access the full topic