AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


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");
close();
 

Option B

B.    FileWriter w = new FileWriter("/tmp/msg.txt", true); append("Java 7");
close();
 

Option C

C.    FileWriter w = new FileWriter("/tmp/msg.txt", FileWriter.MODE_APPEND); append("Java 7");
close();
 

Option D

D.    FileWriter w = new FileWriter("/tmp/msg.txt", Writer.MODE_APPEND); append("Java 7");
close();
 

Correct Answer B
Explanation


Question ID 3514

Given the following code fragment:
10.    p1 = paths.get("report.txt");
11.    p2 = paths.get("company");
12.    / / insert code here
Which code fragment, when inserted independently at line 12, move the report.txt file to the company directory, at the same level, replacing the file if it already exists?

 

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,
StandrardCopyOp)
 

Option E

E.    Files.move (p1, p2, StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.copy_ATTRIBUTES,
LinkOption.NOF)

Correct Answer A,C
Explanation

Send email to admin@getfreedumps for new dumps request!!!