1z0-829 Actual Exam Questions

Last updated on Dec. 19, 2024.
Vendor:Oracle
Exam Code:1z0-829
Exam Name:Java SE 17 Developer
Exam Questions:50
 

Topic 1 - Exam A

Question #1 Topic 1

Given the code fragment:
and

Which is true?

  • A. The program prints t1 : 1 : t2 : 1: t1 : 2 : t2 : 2 : in random order.
  • B. The program prints t1 : 1 : t2 : 1: t1 : 2 : t2 : 2 :
  • C. The program prints t1 : 1 : t2 : 1: t1 : 1 : t2 : 1 : indefinitely.
  • D. The program prints an exception.
Reveal Solution Hide Solution   Discussion   5

Correct Answer: A 🗳️

Question #2 Topic 1

Which statement is true?

  • A. IllegalStateException is thrown if a thread in waiting state is moved back to runnable.
  • B. A thread in waiting state consumes CPU cycles.
  • C. After the timed wait expires, the waited thread moves to the terminated state.
  • D. A thread in waiting state must handle InterruptedException.
Reveal Solution Hide Solution   Discussion   3

Correct Answer: D 🗳️

Question #3 Topic 1

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?

  • A. true
    true
  • B. false
    true
  • C. true
    false
  • D. false
    false
Reveal Solution Hide Solution   Discussion   8

Correct Answer: C 🗳️

Question #4 Topic 1

Given the code fragment:

What is the result?

  • A. Can't logout
  • B. Logged out at: 2021-01-12T21:58:00z
  • C. A compilation error occurs at line n1.
  • D. Logged out at: 2021-01-12T21:58:19.880z
Reveal Solution Hide Solution   Discussion   5

Correct Answer: A 🗳️

file Viewing page 1 out of 13 pages.
Viewing questions 1-4 out of 50 questions
Next Questions
Browse atleast 50% to increase passing rate cup
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.
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago