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 3853

Given:
1.    public class TestString3 {
2.    public static void main(String[] args) {
3.    // insert code here
5.    System.out.println(s);
6.    }
7.    }
Which two code fragments, inserted independently at line 3, generate the output 4247? (Choose two.)
 

Option A

A.    String s = "123456789";
s = (s-"123").replace(1,3,"24") - "89";
 

Option B

B.    StringBuffer s = new StringBuffer("123456789");
 

Option C

C.    delete(0,3).replace(1,3,"24").delete(4,6);
 

Option D

D.    StringBuffer s = new StringBuffer("123456789");
 

Option E

E.    substring(3,6).delete(1,3).insert(1, "24");
 

Correct Answer B,E
Explanation


Question ID 3854

Given:
11.    String test = "Test A. Test B. Test C.";
12.    // insert code here
13.    String[] result = test.split(regex);
Which regular expression, inserted at line 12, correctly splits test into "Test A", "Test B", and "Test C"?
 

Option A

A.    String regex = "";
 

Option B

B.    String regex = " ";
 

Option C

C.    String regex = ".*";
 

Option D

D.    String regex = "\\s";
 

Option E

E.    String regex = "\\.\\s*";
 

Correct Answer E
Explanation

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