1Z0-830

Java 21 Developer 1Z0-830 practice exams

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

1Z0-830 practice exam settings
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 exam format before you book.

Domains and weights

1Z0-830 exam domains, weights and question counts
Domain Weight Weight bar 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

Sample questions

Question 1 of 3

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

  1. A 14
  2. B 18
  3. C 12
  4. D 13 (correct answer)
Why: 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?

  1. A Compilation fails because the guarded case dominates the unguarded one
  2. B bigbigstr3other
  3. C intintstr3other
  4. D bigintstr3other (correct answer)
Why: 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?

  1. A Compilation fails because compact constructor parameters are final
  2. B Range@ followed by a hash code, because records do not override toString
  3. C Range[lo=5, hi=2]
  4. D Range[lo=2, hi=5] (correct answer)
Why: 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.

What your score report looks like

Example attempt, 1Z0-830 practice test 3

77%

Passed
Pass mark 68%

Score by exam domain
DomainWeightYour score%
Handling Date, Time, Text, Numeric and Boolean Values 12%
88
Controlling Program Flow 8%
81
Using Object-Oriented Concepts in Java 20%
76
Handling Exceptions 8%
58
Working with Arrays and Collections 10%
84
Working with Streams and Lambda Expressions 14%
72

Study next: Handling Exceptions. It is below the pass mark and carries 8% of the exam.

Domains and pass mark from our 1Z0-830 practice tests. Scores are an example attempt.

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. Written and reviewed by the DevOpsCode Lab team.

DevOpsCode Lab is not affiliated with Oracle. 1Z0-830 and related names are trademarks of their owners.

Related exams
Exam Vendor Level Questions Minutes Price
1Z0-083Oracle DBA II 1Z0-083 Oracle Professional 300 110 $14.99
1Z0-1072-26OCI Architect Associate 1Z0-1072-26 Oracle Professional 300 90 $14.99
1Z0-1158-26Oracle Cloud Infrastructure Enterprise AI Pro 1Z0-1158-26 Oracle Professional 250 90 $14.99
1Z0-149Oracle Database PL/SQL Developer Pro 1Z0-149 Oracle Professional 300 90 $14.99
1Z0-997-26OCI Architect Professional 1Z0-997-26 Oracle Professional 300 90 $14.99
1Z0-1085-26OCI Foundations 1Z0-1085-26 Oracle Foundational 200 60 $9.99