Java
T
point
Home
Python
Java
JavaScript
HTML
SQL
PHP
C#
C++
DS
Aptitude
Reasoning
Selenium
DBMS
C
Android
Interview Q
Content Menu ▼
1
2
3
4
5
6
7
8
9
10
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.