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
:
Can a FileReader object be constructed that is not connected to any file?
1.
No---the constructor must specify a file.
2.
No---a FileReader is always connected to a file, but you can switch which file it is connected to.
3.
Yes---you can use a constructor without any file name argument.
4.
Yes---this happens if the file named in the constructor does not exist.