Oracle
1Z0-809 · Question #233
1Z0-809 Question #233: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-809 to reveal the answer and full explanation for question #233. The question stem and answer options stay visible for context.
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?Options
- A121
- B122
- C125
- DThe program prints nothing.
Unlock 1Z0-809 to see the answer
You've previewed enough free 1Z0-809 questions. Unlock 1Z0-809 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.