Question 122 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question 122 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question

Given that version.txt is accessible and contains: 1234567890 and given the code fragment:

try (FileInputStream fis = new FileInputStream("version.txt™)#
InputStreamReader isr = new InputStreamReader (fis);
BufferedReader br = new BufferedReader (isr);) {
if (br.markSupported()) {
System.out.print((char) br-read());
br.mark (2);
System.out.print((char) br.read());
br.reset ();
System.out.print((char) br.read());
}
} catch (Exception e) {
e.printStackTrace () ;

}

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.