Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-809 Topic 14 Question 65 Discussion

Actual exam question for Oracle's 1Z0-809 exam
Question #: 65
Topic #: 14
[All 1Z0-809 Questions]

Given that dat

a.txt and alldata.txt are accessible, and the code fragment:

What is required at line n1 to enable the code to overwrite alldata.txt with data.txt?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Sommer
5 months ago
Hmm, line n1 looks a bit tricky. I'd go with C. br.flush() to make sure the input stream is up-to-date before writing to the output file.
upvoted 0 times
Yesenia
5 months ago
I agree, br.flush() is necessary to update the input stream before writing to the output file.
upvoted 0 times
...
Ozell
5 months ago
I think C is the right choice too. It ensures all data is written to the output file.
upvoted 0 times
...
...
Major
5 months ago
I agree with Elfrieda, D) bw.flush() is the right choice to ensure the data is written to alldata.txt.
upvoted 0 times
...
Elfrieda
5 months ago
But if we want to overwrite alldata.txt with data.txt, we need to flush the BufferedWriter, so D) bw.flush() makes more sense.
upvoted 0 times
...
Bo
6 months ago
I disagree, I believe the correct answer is A) br.close(). It will close the BufferedReader after reading data.txt.
upvoted 0 times
...
Amie
6 months ago
I think the answer is D. bw.flush() is required to ensure that all buffered output bytes are written out to the underlying output stream.
upvoted 0 times
Herminia
5 months ago
I think C) br.flush() is the correct option to flush the buffered data before writing to the file.
upvoted 0 times
...
Angelo
5 months ago
I agree with you, D) bw.flush() is needed to write all the data to the file.
upvoted 0 times
...
...
Elfrieda
6 months ago
I think the answer is D) bw.flush(). It will write the data from data.txt to alldata.txt.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77