READ Free Dumps For Oracle- 1z0-804
Question ID 3513 | Which code fragment correctly appends "Java 7" to the end of the file /tmp/msg.txt? |
Option A | A. FileWriter w = new FileWriter("/tmp/msg.txt"); append("Java 7"); |
Option B | B. FileWriter w = new FileWriter("/tmp/msg.txt", true); append("Java 7"); |
Option C | C. FileWriter w = new FileWriter("/tmp/msg.txt", FileWriter.MODE_APPEND); append("Java 7"); |
Option D | D. FileWriter w = new FileWriter("/tmp/msg.txt", Writer.MODE_APPEND); append("Java 7"); |
Correct Answer | B |
Question ID 3514 | Given the following code fragment: |
Option A | A. Files.move(p1, p2, StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.ATOMIC_MOVE); |
Option B | B. Files.move(p1, p2, StandardCopyOption.REPLACE_Existing, LinkOption.NOFOLLOW_LINKS); |
Option C | C. Files.move(p1, p2, StandardCopyOption.REPLACE_EXISTING, LinkOption.NOFOLLOW_LINKS); |
Option D | D. Files.move(p1, p2, StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.copy_ATTRIBUTES, |
Option E | E. Files.move (p1, p2, StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.copy_ATTRIBUTES, |
Correct Answer | A,C |