exam questions

Exam 1z0-809 All Questions

View all questions & answers for the 1z0-809 exam

Exam 1z0-809 topic 1 question 137 discussion

Actual exam question from Oracle's 1z0-809
Question #: 137
Topic #: 1
[All 1z0-809 Questions]

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

What is the result?

  • A. 121
  • B. 122
  • C. 135
  • D. The program prints nothing.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
duydn
3 months, 3 weeks ago
Selected Answer: B
B mask(2) save the checkpoint
upvoted 1 times
...
Kim514
9 months ago
The answer is B public static void main(String[] args) throws IOException { try ( FileInputStream fis = new FileInputStream("C:/Temp/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(); } }
upvoted 1 times
...
harshgupta1990
2 years, 9 months ago
b tested
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago