Question 68 of 513
1Z0-829 Practice Question: Handling Date, Time, Text, Numeric and Boolean Values
Which two statements about the java.time.Duration class are true? (Choose two.)
⚠ Common exam trap
Test-takers frequently confuse Duration with Period, assuming Duration supports months/years, or incorrectly think Duration.between() works with any date-time type like LocalDate, when it actually requires time-based temporals such as LocalTime, LocalDateTime, or Instant.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Duration can be negative.
The java.time.Duration class can represent negative durations, such as when the end instant is before the start instant in a Duration.between() call. Option C is correct because all classes in the java.time package, including Duration, are immutable and thread-safe by design, ensuring safe concurrent access without synchronization.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Duration supports units like months and years.
Why it's wrong here
Incorrect: Duration only supports days, hours, minutes, seconds, and nanoseconds.
- ✓
Duration can be negative.
Why this is correct
Correct: Duration can represent a negative amount of time.
- ✓
Duration is immutable and thread-safe.
Why this is correct
Correct: All java.time classes are immutable and thread-safe.
- ✗
Duration.between(LocalDate.now(), LocalDate.now()) returns a Duration.
Why it's wrong here
Incorrect: Duration.between requires temporals with seconds; use between LocalDateTimes.
- ✗
Duration uses a days-based representation.
Why it's wrong here
Incorrect: Duration uses seconds and nanoseconds; days are converted to seconds.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 25, 2026
This 1Z0-829 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-829 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.