exam questions

Exam 1z0-809 All Questions

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

Exam 1z0-809 topic 1 question 91 discussion

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

Given the content of the employee.txt file:
Every worker is a master.
Given that the employee.txt file is accessible and the file allemp.txt does NOT exist, and the code fragment:

What is the result?

  • A. Exception 1
  • B. Exception 2
  • C. The program executes, does NOT affect the system, and produces NO output.
  • D. allemp.txt is created and the content of employee.txt is copied to it.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
asdfjhfgjuaDCV
4 months, 3 weeks ago
A is the answer
upvoted 1 times
...
mevlt
2 years, 4 months ago
The answer is A because the StandardOpenOption.APPEND which requires the file to exist.
upvoted 1 times
...
Eason_from_the_future
2 years, 11 months ago
A and if allemp.txt is exist, the content of employee.txt is copied to it.
upvoted 4 times
...
JME_CHG
3 years, 3 months ago
A - tested *
upvoted 3 times
...
JME_CHG
3 years, 3 months ago
C - tested
upvoted 1 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