Oracle
1Z0-804 · Question #55
Given that myfile.txt contains: What is the result?
The correct answer is A. new file.txt contains. For each line in the file myfile.text the line number and the line is written into newfile.txt.
NIO.2
Question
Given that myfile.txt contains:
What is the result?
Exhibit
Options
- Anew file.txt contains:
- Bnew file.txt contains:
- Cnewfile.txt is empty
- Dan exception is thrown at runtime
- Ecompilation fails
How the community answered
(46 responses)- A74% (34)
- B2% (1)
- C7% (3)
- D4% (2)
- E13% (6)
Explanation
For each line in the file myfile.text the line number and the line is written into newfile.txt.
Topics
#Files.copy#Path#NIO.2 file operations#StandardCopyOption
Community Discussion
No community discussion yet for this question.
