nerdexam
Oracle

1Z0-804 · Question #113

Assuming the port statements are correct, which two (three?) code fragments create a one- byte file?

Sign in or unlock 1Z0-804 to reveal the answer and full explanation for question #113. The question stem and answer options stay visible for context.

Java I/O Fundamentals

Question

Assuming the port statements are correct, which two (three?) code fragments create a one- byte file?

Options

  • AOutputStream fos = new FileOutputStream(new File("/tmp/data.bin"));
  • BOutputStream fos = new FileOutputStream ("/tmp/data.bin");
  • COutputStream fos = new FileOutputStream (new File ("/tmp/data.bin"));
  • DOutputStream fos = new FileOutputStream ("/tmp/data.bin");

Unlock 1Z0-804 to see the answer

You've previewed enough free 1Z0-804 questions. Unlock 1Z0-804 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#FileOutputStream#OutputStream#file creation#I/O streams
Full 1Z0-804 Practice