Given the code fragment:
What is the result?
A.
May 04, 2014T00:00:00.000
B.
2014-05-04T00:00: 00. 000
C.
5/4/14T00:00:00.000
D.
An exception is thrown at runtime.
Given the code fragment:
What is the result?
A.
May 04, 2014T00:00:00.000
B.
2014-05-04T00:00: 00. 000
C.
5/4/14T00:00:00.000
D.
An exception is thrown at runtime.
Answer is D.
Its trying to print a LocalDate obj in format of LocalDateTime HourOfDay are not supported in LocalDate. Exception is thrown.