# Java 21 Developer 1Z0-830 practice exams

> 5 timed 1Z0-830 practice tests with 240 questions and a 68% pass mark. See your score in Using Object-Oriented Concepts in Java and every other domain.

Page: https://devopscodelab.com/exams/oracle-1z0-830/

240 questions in 5 timed practice tests. Each test has about 50 questions and a 120-minute limit. The pass mark is 68%. Results are split across the 10 exam domains.

## Exam at a glance

| Setting | Value |
| --- | --- |
| Practice tests | 5 |
| Questions in total | 240 |
| Questions per test | About 50 |
| Time limit per test | 120 minutes |
| Pass mark | 68% |
| Question types | Single answer and multiple answer (22 multiple-answer questions) |
| Level | Associate |
| Category | Programming |

These are the settings of our practice tests. Check the official Oracle exam page for the current format before you book.

## Domains and weights

| Domain | Weight | Questions in our bank |
| --- | --- | --- |
| Handling Date, Time, Text, Numeric and Boolean Values | 12% | 29 |
| Controlling Program Flow | 8% | 19 |
| Using Object-Oriented Concepts in Java | 20% | 48 |
| Handling Exceptions | 8% | 19 |
| Working with Arrays and Collections | 10% | 24 |
| Working with Streams and Lambda Expressions | 14% | 34 |
| Packaging and Deploying Java Code | 7% | 16 |
| Managing Concurrent Code Execution | 9% | 22 |
| Using Java I/O API | 7% | 16 |
| Implementing Localization | 5% | 13 |

## Price and access

- 1Z0-830 practice exams: $12.99 for 12 months of access.
- Free mini exam: 15 questions with explanations (free account): https://devopscodelab.com/app/exams/oracle-1z0-830/mini/
- All-Access subscription includes every exam: https://devopscodelab.com/pricing/
- 10 free questions with answers: https://devopscodelab.com/exams/oracle-1z0-830/free-practice-questions/

## Sample questions

### Question 1 of 3

Given this code fragment:
String s = """
    Hello,\
     World
    """;
System.out.println(s.length());
What is printed?

- A. 14
- B. 18
- C. 12
- D. 13

**Answer:** D

**Explanation:** The closing delimiter sets the incidental indentation to four spaces, so the second line keeps one leading space. The backslash at the end of the first line is a line-continuation escape, so the two lines are joined without a line terminator, giving "Hello, World" followed by the final newline: 13 characters. 12 forgets the trailing newline, 14 assumes the backslash still leaves a newline, and 18 ignores the stripping of incidental whitespace.

### Question 2 of 3

Given:
static String describe(Object o) {
    return switch (o) {
        case Integer i when i > 10 -> "big";
        case Integer i -> "int";
        case String s -> "str" + s.length();
        default -> "other";
    };
}
What does System.out.println(describe(42) + describe(7) + describe("abc") + describe(3.0)); print?

- A. Compilation fails because the guarded case dominates the unguarded one
- B. bigbigstr3other
- C. intintstr3other
- D. bigintstr3other

**Answer:** D

**Explanation:** Pattern labels are tested top to bottom: 42 matches the guarded Integer case, 7 fails the guard and falls to the unguarded Integer case, "abc" matches the String case, and 3.0 (a Double) reaches default. A guarded pattern does not dominate an unguarded pattern of the same type, so ordering it first is legal; it is the reverse order that fails to compile. The other outputs ignore the guard or apply it to every Integer.

### Question 3 of 3

Given:
record Range(int lo, int hi) {
    Range {
        if (lo > hi) { int t = lo; lo = hi; hi = t; }
    }
}
What does System.out.println(new Range(5, 2)); print?

- A. Compilation fails because compact constructor parameters are final
- B. Range@ followed by a hash code, because records do not override toString
- C. Range[lo=5, hi=2]
- D. Range[lo=2, hi=5]

**Answer:** D

**Explanation:** In a compact constructor the parameters are ordinary, non-final variables, and their values at the end of the constructor body are assigned to the fields automatically, so the swap takes effect. The generated toString lists components in declaration order as Range[lo=2, hi=5]. Only the fields themselves cannot be assigned in a compact constructor, and records always get a generated toString.


## Study plans

### Two weeks

1. Day 1: take practice test 1 in exam mode to get a baseline.
2. Days 2 to 5: domain mode on Using Object-Oriented Concepts in Java and Working with Streams and Lambda Expressions, the two most heavily weighted domains.
3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

### Four weeks

1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

## Questions about the 1Z0-830 practice exams

**Are these real 1Z0-830 exam questions?**

No. We write every question ourselves and map it to the published 1Z0-830 exam objectives. We do not use leaked or recalled questions.

**Do the time limit and pass mark match the official exam?**

They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.

**Can I try it before I pay?**

Yes. The free mini exam has 15 questions with full explanations and needs no account.

**How long do I keep access?**

A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.

**What happens after I finish a test?**

You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026.

DevOpsCode Lab is not affiliated with Oracle. 1Z0-830 and related names are trademarks of their owners. We write every question ourselves; these are not real exam questions.
