12345678910



Question 1: What does the following constructor do: FileWriter fw = new FileWriter( "myFile.txt" );
1. It creates the textfile "myFile.txt" in the root directory.
2. It creates the textfile "myFile.txt" unless it already exists.
3. Any previous "myFile.txt" in the current directory will be deleted and a new one created.
4. A new "myFile.txt" will be created in the current directory, or a previous one will be opened for appending.