Exams Net
Unrestricted Exams Practice
Home
Exams
Banking
CUET
Defence
Engineering
Finance
GATE
Insurance
International
JEE
LAW
MBA
MCA
Medical
Other
Police
PSC
RRB
SSC
State Govt
Subjectwise
Teacher
SET Exams
UPSC
Aptitude
Algebra and Higher Mathematics
Arithmetic
Commercial Mathematics
Data Based Mathematics
Geometry and Mensuration
Number System and Numeracy
Problem Solving
Board Exams
Andhra
Bihar
CBSE
Gujarat
Haryana
ICSE
Jammu and Kashmir
Karnataka
Kerala
Madhya Pradesh
Maharashtra
Odisha
Tamil Nadu
Telangana
Uttar Pradesh
English
Competitive English
CBSE
CBSE Class 10 Solutions
CBSE Class 12 Solutions
CBSE Question Papers (Pdf)
NCERT Books (Pdf)
NCERT Exemplar Books (Pdf)
NCERT Study Notes (Pdf)
CBSE Study Concepts (Pdf)
NCERT Text Book Class 11 Solutions
NCERT Text Book Class 12 Solutions
ICSE Class 10 Papers
Certifications
Technical
Cloud Tech Certifications
Security Tech Certifications
Management
IT Infrastructure
More
About
Contact Us
Our Apps
Privacy
+
-
Test Index
Java IO Serialization
Show Para
Hide Para
Share question:
© examsnet.com
Question : 1 of 17
Marks:
+1
,
-0
Chain these constructors to create objects to read from a file named "in" and to write to a file named "out".
reader =
(1)_______
(2)_______
"in" ));
Writer =
(3)_________
(4)________
(5)______
"out" )));
Constructors
new FileReader(
new PrintReader(
new BufferedReader(
new BufferedWriter(
new FileWriter(
new PrintWriter(
reader = new PrintReader(new FileReader("in");
writer = new BufferedWriter (new BufferedWriter (new FileWriter("out")));
reader = new FileReader(new PrintReader("in");
writer = new FileWriter (new BufferedWriter (new BufferedWriter("out")));
reader = new BufferedReader(new FileReader("in");
writer = new PrintWriter (new BufferedWriter (new FileWriter("out")));
reader = new FileReader(new FileReader("in");
writer = new FileWriter (new BufferedWriter (new FileWriter("out")));
Validate
Solution:
reader = new BufferedReader(new FileReader("in");writer = new PrintWriter (new BufferedWriter (new FileWriter("out")));
© examsnet.com
Go to Question:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Next Question
More Free Exams
Oracle Certifications
Salesforce Certifications
SAP Certifications
TOGAF 9