Java OCA OCP Practice Question 1811

Question

Which of these represents the earliest date/time?

  • A. 2020-02-15T03:00+01:00[Europe/Berlin]
  • B. 2020-02-15T04:00+02:00[Europe/Helsinki]
  • C. 2020-02-15T05:00+01:00[Europe/Warsaw]
  • D. None of the above. We have a tie.


D.

Note

To compare times in different time zones, you can subtract the time zone from the time to convert to GMT.

This makes it 02:00 in Berlin because we subtract 1 from 3.

Similarly, it is 02:00 in Helsinki due to subtracting 2 from 4.

Finally, it is 04:00 in Warsaw because we subtracted 1 from 5.

We have a tie because it is the same time in Berlin and Helsinki, so Option D is correct.




PreviousNext

Related