자격증/OCJP_ExamC
QUESTION 48
IT grow.
2018. 7. 26. 06:40
반응형
QUESTION 48Given that the current directory is empty, and that the user has read and write privileges to the current directory, and the following:1. import java.io.*;2. public class Maker {3. public static void main(String[] args) {4. File dir = new File("dir");5. File f = new File(dir, "f");6. }7. }Which statement is true?A. Compilation fails.B. Nothing is added to the file system.C. Only a new file is created on the file system.D. Only a new directory is created on the file system.E. Both a new file and a new directory are created on the file system.Solution : B
반응형