The answer is the letter D, in the second line instance 32 which is not a valid day, the code compiles because the Local.Date.of method accepts any integer number, but if it is not in the range it throws an exception.
The correct answer is D
"A DateTimeException is thrown at runtime."
Exception in thread "main" java.time.DateTimeException: Invalid value for DayOfMonth (valid values 1 - 28/31): 32
This section is not available anymore. Please use the main Exam Page.1z0-808 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
DJava
Highly Voted 6 years agoMPignaProTech
Most Recent 8 months, 2 weeks agoakbiyik
2 years, 6 months agoiSnover
2 years, 8 months agoSurendra88
3 years, 11 months agohoussem94
4 years, 11 months agov323rs
5 years, 5 months agoletmein2
5 years, 9 months agorasifer
5 years, 11 months ago