nerdexam
Oracle

1Z0-851 · Question #64

1Z0-851 Question #64: Real Exam Question with Answer & Explanation

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

Question

Given that the current directory is empty, and that the user has read and write privileges to the current directory, and the following: import java.io.*; public class Maker { public static void main(String[] args) { File dir = new File("dir"); File f = new File(dir, "f"); } } Which statement is true?

Options

  • ACompilation fails.
  • BNothing is added to the file system.
  • COnly a new file is created on the file system.
  • DOnly a new directory is created on the file system.
  • EBoth a new file and a new directory are created on the file system.

Unlock 1Z0-851 to see the answer

You've previewed enough free 1Z0-851 questions. Unlock 1Z0-851 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.

Full 1Z0-851 Practice