Review 84 1Z0-829 practice questions with answer explanations and community insights.
Question 1
Given the code fragment: and Which is true?
The program prints t1 : 1 : t2 : 1: t1 : 2 : t2 : 2 : in random order.
The program prints t1 : 1 : t2 : 1: t1 : 2 : t2 : 2 :
The program prints t1 : 1 : t2 : 1: t1 : 1 : t2 : 1 : indefinitely.
The program prints an exception.
Question 2
Which statement is true?
IllegalStateException is thrown if a thread in waiting state is moved back to runnable.
A thread in waiting state consumes CPU cycles.
After the timed wait expires, the waited thread moves to the terminated state.
A thread in waiting state must handle InterruptedException.
Question 3
Daylight Saving Time (DST) is the practice of advancing clocks at the start of spring by one hour and adjusting them backward by one hour in autumn. Considering that in 2021, DST in Chicago (Illinois) ended on November 7th at 2 AM, and given the fragment: What is the output?