Home Tutorial Java Scjp Part10 SCJP Module-10 Question-8


Share on Google+Share on Google+
SCJP Module-10 Question-8
Posted on: July 17, 2010 at 12:00 AM
The Sample program given below will test your understanding about the Stream classes in Java.

Re-arrange the code for reading a text file.

FileInputStream fstream = (1) Place code here
(1) Place code here = new DataInputStream(fstream);
BufferedReader br = (3) Place code here
Select the sequence of code from the given sentences for proper execution of above code.

(X) new FileInputStream("textfile.txt");
(Y) new BufferedReader(new InputStreamReader(in));
(Z) DataInputStream in


(A) 1-X, 2-Y, 3-Z
(B) 1-X, 2-Z , 3-Y 
(C) 1-Z, 2-X, 3-Y




Related Tags for SCJP Module-10 Question-8:

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: July 17, 2010

Recommend the tutorial

Advertisements Advertisements