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 3714

Given:
1.    public class TestString1 {
2.    public static void main(String[] args) {
3.    String str = "420";
4.    str += 42;
5.    System.out.print(str);
6.    }
7.    }
What is the output?
 

Option A

A.    42
 

Option B

B.    420
 

Option C

C.    462
 

Option D

D.    42042
 

Option E

E.    Compilation fails.
 

Option F

F.    An exception is thrown at runtime.
 

Correct Answer D
Explanation


Question ID 3715

Given:
12.    Date date = new Date();
13.    df.setLocale(Locale.ITALY);
14.    String s = df.format(date);
The variable df is an object of type DateFormat that has been initialized in line 11. What is the result if this code is run on December 14, 2000?
 

Option A

A.    The value of s is 14-dic-2000.
 

Option B

B.    The value of s is Dec 14, 2000.
 

Option C

C.    An exception is thrown at runtime.
 

Option D

D.    Compilation fails because of an error in line 13.
 

Correct Answer D
Explanation

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