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 71 Discussion

Actual exam question for Oracle's 1Z0-809 exam
Question #: 71
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:

Ciara
2 months ago
I think the answer is A) br.close(). It closes the input stream, allowing for the file to be overwritten.
upvoted 0 times
...
Chauncey
2 months ago
But doesn't br.flush() flush the input stream? I'm not sure now.
upvoted 0 times
...
Cecilia
2 months ago
I disagree, I believe the answer is D) bw.flush(). It flushes the output stream writer.
upvoted 0 times
...
Chauncey
3 months ago
I think the answer is C) br.flush(). It flushes the output stream.
upvoted 0 times
...
Barrie
3 months ago
Haha, 'bw.flush();' is the way to go. It's like asking a plumber to install a sink without turning on the water, you know?
upvoted 0 times
...
Tammi
3 months ago
I bet the answer is 'bw.flush();'. You can't just leave all that data in the buffer, you gotta push it out there!
upvoted 0 times
...
Alisha
3 months ago
Gotta be 'bw.flush();', right? Otherwise, how's the computer gonna know to update the file? It's not a mind reader, you know!
upvoted 0 times
Jennifer
2 months ago
Yeah, 'bw.flush();' makes sense to ensure the data is written to the file.
upvoted 0 times
...
Donte
3 months ago
I think you're right, 'bw.flush();' is needed to update the file.
upvoted 0 times
...
...
Kanisha
3 months ago
Hmm, 'bw.flush();' seems like the obvious choice here. I mean, who writes to a file without flushing the buffer? Amateurs, that's who!
upvoted 0 times
...
Marta
3 months ago
I think line 'n1' should be 'bw.flush();' to ensure that all buffered output bytes are written out to the underlying output stream.
upvoted 0 times
Sharmaine
2 months ago
Yes, that makes sense. 'bw.flush();' would overwrite alldata.txt with data.txt.
upvoted 0 times
...
Gail
2 months ago
I think line 'n1' should be 'bw.flush();' to ensure that all buffered output bytes are written out to the underlying output stream.
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