Hi admin:
Answer marked as correct is
2022-11-01T09:00-05:00[US/Eastern]
2022-11-01T10:00-05:00[US/Eastern]
I have executed the piece of code and got
2022-11-01T10:00-05:00[US/Eastern]
2022-11-01T10:00-05:00[US/Eastern]
About Question enthuware.ocpjp.v17.2.3759 :
Moderator: admin
-
- Posts: 11
- Joined: Thu Sep 01, 2022 10:58 am
- Contact:
Online
-
- Site Admin
- Posts: 10074
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v17.2.3759 :
That is because the DST didn't end on 1st Nov 2022. It ended on 6th Nov 2022. So if you change the LocalDate to LocalDateTime.of(2022, Month.NOVEMBER, 5, 10, 0); your code will print 9 and 10 (instead of 10 and 10).
The answer is correct because the question asks you to assume that DST ends on 1st Nov 2022. If it really did end on 1st Nov, you would have gotten the said output.
The explanation is also correct but it will be enhanced to make this point clear.
The answer is correct because the question asks you to assume that DST ends on 1st Nov 2022. If it really did end on 1st Nov, you would have gotten the said output.
The explanation is also correct but it will be enhanced to make this point clear.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: admin and 12 guests