exam questions

Exam 1z0-808 All Questions

View all questions & answers for the 1z0-808 exam

Exam 1z0-808 topic 1 question 123 discussion

Actual exam question from Oracle's 1z0-808
Question #: 123
Topic #: 1
[All 1z0-808 Questions]

Given the code fragment:

What is the result?

  • A. 2012-02-10
  • B. 2012-02-11
  • C. Compilation fails
  • D. A DateTimeException is thrown at runtime.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DJava
Highly Voted 5 years, 6 months ago
Answer D: DateTimeException
upvoted 10 times
...
MPignaProTech
Most Recent 1 month, 4 weeks ago
Selected Answer: D
D is the good answer
upvoted 1 times
...
akbiyik
2 years ago
Selected Answer: D
Answer D
upvoted 1 times
...
iSnover
2 years, 2 months ago
Selected Answer: D
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.
upvoted 2 times
...
Surendra88
3 years, 4 months ago
D - Answer. DayOfMonth is not valid (32)
upvoted 1 times
...
houssem94
4 years, 4 months ago
Answer is D :Tested
upvoted 2 times
...
v323rs
4 years, 11 months ago
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
upvoted 3 times
...
letmein2
5 years, 3 months ago
D. DateTimeException: Invalid value for DayOfMonth (valid values 1 - 28/31): 32
upvoted 3 times
...
rasifer
5 years, 5 months ago
Answer is D, tested.
upvoted 4 times
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago