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-851





Question ID 3716

 Given:
1.    public class KungFu {
2.    public static void main(String[] args) {
3.    Integer x = 400;
4.    Integer y = x;
5.    x++;
6.    StringBuilder sb1 = new StringBuilder("123");
7.    StringBuilder sb2 = sb1;
8.    sb1.append("5");
9.    System.out.println((x==y) + " " + (sb1==sb2));
10.    }
11.    }
What is the result?

 

Option A

A.    true true
 

Option B

B.    false true
 

Option C

C.    true false
 

Option D

D.    false false
 

Option E

E.    Compilation fails.
 

Option F

F.    An exception is thrown at runtime.

Correct Answer B
Explanation


Question ID 3717

Given 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?
 

Option A

A.    Compilation fails.
 

Option B

B.    Nothing is added to the file system.
 

Option C

C.    Only a new file is created on the file system.
 

Option D

D.    Only a new directory is created on the file system.
 

Option E

E.    Both a new file and a new directory are created on the file system.
 

Correct Answer B
Explanation

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