Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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 (?) , you can switch to a simple comment.
Switch to a voting comment New
asdfjhfgjuaDCV
1 month, 2 weeks ago
A is the answer
upvoted 1 times
...
mevlt
2 years, 1 month ago
The answer is A because the StandardOpenOption.APPEND which requires the file to exist.
upvoted 1 times
...
Eason_from_the_future
2 years, 8 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 ago
A - tested *
upvoted 3 times
...
JME_CHG
3 years 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 ...