Question 35 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 35 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given the code fragment:

LocalDate datel = LocalDate
LocalDate date2
LocalDate date3 = LocalDate
system. out. println("datel
system. out, println("date2 =
system. out, print1n ("date3

now ()
LocalDate.

of (2014, 6,

+ datel);
+ date2);
+ date3);

20);

- parse ("2014-06-20",

DateTimeFormatter.I80_DATE);

Assume that the system date is June 20, 2014

What is the result?

© A) datel = 2014-06-20
date2 = 2014-06-20
date3 = 2014-06-20

© B) datel = 06/20/2014
date2 = 2014-06-20
date3 = Jun 20, 2014

© C) Compilation fails

© D) A DateparseExcpetion is thrown at runtime.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.