Free 1z0-829: Java SE 17 Developer Exam Questions and Answers
Java SE 17 Developer is part of Oracle Certification from Oracle University. Oracle exam codes begin 1Z0-, and modern ones end in the release year, so 1Z0-1085-26 is the 2026 release of OCI Foundations Associate. The least-known rule is the update path: a Delta exam swaps the prefix to 1D0- and appends -D while keeping the same family number, so 1Z0-1058-26 renews through 1D0-1058-26-D.
If you searched for 1z0-829: Java SE 17 Developer dumps, an ExamTopics discussion or a free PDF, this is the question bank for it: practice questions with verified answers and explanations, a timed practice test and updates whenever Oracle changes the exam.
Last updated: October 26, 2026
- Provider
- Oracle
- Questions in our bank
- 1000+
- Free to read
- First 10, with answers
- Official page
- Official Exam website
- Our test mode duration & pass mark
- 130 mins · 70%
- Verified answers
- Reviewed weekly
Recommended: Switch to Test Mode to start a practice test that simulates the real exam experience.
Question #1
Given: int total = 0; outer: for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { if (j == 2) continue outer; if (i == 3) break outer; total += i + j; } } System.out.println(total); Which two statements are true? (Choose two.)
Select 2 answers.
Correct answer: A, B
Explanation
For i = 0, 1 and 2 the inner loop adds i+0 and i+1 and then continue outer fires at j == 2, giving 1 + 3 + 5 = 9 from 6 executions. When i is 3, j is 0, so the j == 2 test fails and break outer runs before any addition. The break is therefore first reached at i == 3, not i == 2.
Continue with 1z0-829: Java SE 17 Developer
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-829: Java SE 17 Developer, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #2
Given: LocalDate start = LocalDate.of(2024, 1, 31); LocalDate d = start.plusMonths(1).plusDays(1); Period p = Period.between(start, d); System.out.println(d + " " + p); What is the result?
Correct answer: B
Explanation
plusMonths(1) from January 31 clamps to the last valid day, 2024-02-29, and plusDays(1) gives 2024-03-01. Period.between adds whole months to the start (2024-02-29) and counts the remaining day, giving P1M1D. Period never reports negative days after normalizing like this, and no exception occurs.
Continue with 1z0-829: Java SE 17 Developer
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-829: Java SE 17 Developer, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #3
Given: StringBuilder sb = new StringBuilder("abcdef"); sb.insert(3, "XY").reverse().deleteCharAt(0).replace(1, 3, "-"); System.out.println(sb + " " + sb.length()); What is the result?
Correct answer: C
Explanation
insert gives abcXYdef, reverse gives fedYXcba, and deleteCharAt(0) gives edYXcba. replace(1, 3, "-") removes the characters at index 1 and 2 (d and Y; the end index is exclusive) and inserts the hyphen, leaving e-Xcba with length 6. All indexes are in range, so no exception occurs.
Continue with 1z0-829: Java SE 17 Developer
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-829: Java SE 17 Developer, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #4
Given that table acct is initially empty, con is an open Connection, and no exception is thrown: con.setAutoCommit(false); Statement st = con.createStatement(); st.executeUpdate("INSERT INTO acct VALUES (1, 100)"); Savepoint sp = con.setSavepoint(); st.executeUpdate("INSERT INTO acct VALUES (2, 200)"); con.rollback(sp); st.executeUpdate("INSERT INTO acct VALUES (3, 300)"); con.commit(); Which rows does table acct contain after the code runs?
Correct answer: C
Explanation
rollback(sp) undoes only the work done after the savepoint, which is the insert of id 2, and the transaction stays open. The insert of id 1 precedes the savepoint and id 3 is added afterward, so commit() persists ids 1 and 3. A full rollback() would be needed to discard id 1.
Continue with 1z0-829: Java SE 17 Developer
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-829: Java SE 17 Developer, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #5
Given: List<Integer> list = new ArrayList<>(List.of(10, 20, 30, 40)); list.remove(Integer.valueOf(30)); list.remove(1); list.add(1, 5); Which two statements are true after the code executes? (Choose two.)
Select 2 answers.
Correct answer: C, E
Explanation
remove(Integer.valueOf(30)) removes the element by value, leaving [10, 20, 40]. remove(1) removes by index, which deletes 20 and leaves [10, 40], and add(1, 5) produces [10, 5, 40]. So get(1) is 5, size() is 3, and indexOf(40) is 2.
Continue with 1z0-829: Java SE 17 Developer
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-829: Java SE 17 Developer, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #6
The classpath contains these resource bundle files, each defining the key hello: Msg.properties hello=Hello default Msg_en.properties hello=Hello en Msg_fr.properties hello=Bonjour Given: Locale.setDefault(new Locale("en", "US")); ResourceBundle rb = ResourceBundle.getBundle("Msg", new Locale("de", "DE")); System.out.println(rb.getString("hello")); What is the result?
Correct answer: A
Explanation
No bundle matches de_DE or de, so only the base bundle would be found from the requested locale. When that happens, getBundle searches the candidates for the default locale (en_US, then en) before settling for the base bundle, and finds Msg_en. The base bundle is used only if the default locale also yields nothing better.
Continue with 1z0-829: Java SE 17 Developer
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-829: Java SE 17 Developer, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #7
Given: public class Counter { private int count; public void inc() { count++; } public int get() { return count; } } Multiple threads call inc() and get() on one shared Counter instance. Which two modifications make Counter thread-safe? (Choose two.)
Select 2 answers.
Correct answer: B, C
Explanation
count++ is a read-modify-write sequence, so it needs atomicity: AtomicInteger provides it, and synchronizing both methods on the same monitor gives atomicity and visibility. volatile alone guarantees visibility but not atomicity. A lock created inside each call is never shared, so it excludes no other thread, and yield() has no effect on correctness.
Continue with 1z0-829: Java SE 17 Developer
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-829: Java SE 17 Developer, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #8
Given: public class Test { static int check() { int x = 1; try { x = 2; throw new IllegalStateException(); } catch (RuntimeException e) { x = 3; return x; } finally { x = 4; } } public static void main(String[] args) { System.out.println(check()); } } What is the result?
Correct answer: E
Explanation
The return statement in the catch block evaluates x (3) and saves that value before the finally block runs. The assignment x = 4 in finally changes the local variable but not the value already saved for return, so 3 is printed. The tempting answer is 4, which would only occur if finally itself contained a return statement.
Continue with 1z0-829: Java SE 17 Developer
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-829: Java SE 17 Developer, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #9
Given: int n = 2; Which two statements compile? (Choose two.)
Select 2 answers.
Correct answer: B, C
Explanation
A switch expression may list several constants in one case label, and the old colon form is allowed if each branch uses yield. A switch expression over an int must be exhaustive, so it needs a default branch. A block branch must yield a value or throw, and duplicate case constants are rejected.
Continue with 1z0-829: Java SE 17 Developer
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-829: Java SE 17 Developer, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #10
Given: class Res implements AutoCloseable { private final String name; Res(String name) { this.name = name; } public void close() throws Exception { System.out.print("close" + name + " "); throw new Exception("c" + name); } } public class Test { public static void main(String[] args) { try (Res a = new Res("A"); Res b = new Res("B")) { System.out.print("body "); throw new RuntimeException("body"); } catch (Exception e) { System.out.print(e.getMessage() + " " + e.getSuppressed().length); } } } Which two statements are true? (Choose two.)
Select 2 answers.
Correct answer: A, C
Explanation
Resources are closed in reverse order of declaration, so b closes first. The RuntimeException from the body is the primary exception, and the two exceptions from close() are added to it as suppressed exceptions. The catch (Exception e) clause handles the checked exception from the implicit close calls, so the code compiles.
Continue with 1z0-829: Java SE 17 Developer
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-829: Java SE 17 Developer, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Discussion
Explain your reasoning, not just the letterOther Oracle certifications
- 1z0-062: Oracle Database 12c Installation and Administration (opens in a new tab)
- 1z0-067: Upgrade Oracle9i10g11g OCA OR OCP to Oracle Database 12c OCP (opens in a new tab)
- 1z0-1105-22: Oracle Cloud Data Management 2022 Foundations Associate (opens in a new tab)
- 1z0-071: Oracle Datbase 12c SQL (opens in a new tab)
- 1z0-063: Oracle Database 12c Advanced Administration (opens in a new tab)
- 1z0-060: Upgrade to Oracle Database 12c (opens in a new tab)
- 1z0-821: Oracle Solaris 11 System Administration (opens in a new tab)
- 1z0-900: Java EE 7 Application Developer (opens in a new tab)
- 1z0-1094-23: Oracle Cloud Database 2023 Migration and Integration Professional (opens in a new tab)
- 1z0-632: PeopleSoft PeopleTools 8.5x Implementation Essentials (opens in a new tab)
- 1z0-082: Oracle Database Administration I (opens in a new tab)
- 1z0-1072-23: Oracle Cloud Infrastructure 2023 Architect Associate (opens in a new tab)
Reviews
Write a review★★★★★
Exam Practice is worth every penny. The mock exams are realistic, and the feedback helped me focus on key areas.
Amit SharmaVerified buyer
★★★★★
I highly recommend Exam Practice. The feedback after each test helped me improve significantly, and I passed my exams easily.
Oscar NyströmVerified buyer
★★★★★
This platform is a lifesaver. The practice questions and explanations are so detailed. It’s the best study tool I’ve ever used.
Hannah SmithVerified buyer
FAQ
Learn More: https://academy.oracle.com/en/resources-oracle-certifications.html
- Q1: What is the 1z0-829: Java SE 17 Developer exam?
- A: 1z0-829: Java SE 17 Developer is a Oracle certification exam. Judging by the questions in our bank, it concentrates on fragment, purge, purchase, java and fragments.
- Q2: What topics does the 1z0-829: Java SE 17 Developer exam cover?
- A: Questions in our 1z0-829: Java SE 17 Developer bank cluster around fragment, purge, purchase, java, fragments, class, compile and header. Working through the full set is the quickest way to find which of these you are weakest on.
- Q3: How should I prepare for 1z0-829: Java SE 17 Developer?
- A: Work through the 1z0-829: Java SE 17 Developer practice questions here, checking your answer on each one, then sit the practice test to rehearse the exam under timed conditions before the real thing.
- Q4: Are these real 1z0-829: Java SE 17 Developer exam questions?
- A: They are drawn from officially released past questions and from community members who have sat 1z0-829: Java SE 17 Developer. Answers are verified and updated weekly.
- Q5: Where do I register for the 1z0-829: Java SE 17 Developer exam?
- A: Register through Oracle directly at https://academy.oracle.com/en/resources-oracle-certifications.html. Exampractice is not affiliated with Oracle and does not administer the exam.
- Q6: Is there a free 1z0-829: Java SE 17 Developer sample?
- A: Yes. Every 1z0-829: Java SE 17 Developer page shows a free sample of real questions. Upgrading opens the full bank and the practice test.
- Q7: What are Oracle Certification Exams?
- A: Oracle Certification Exams validate your expertise in using and managing Oracle’s vast array of software and hardware solutions, including databases, cloud infrastructure, enterprise applications, and more. These certifications demonstrate your proficiency in deploying, configuring, and optimizing Oracle technologies to meet business needs.
- Q8: Why should I pursue Oracle Certification?
- A: Oracle Certification enhances your professional credibility, showcasing your skills and knowledge in Oracle technologies. This can lead to better job opportunities, higher salaries, and career advancement in IT, database management, cloud computing, and enterprise application roles.
- Q9: What are the benefits of Oracle Certification?
- A: Benefits include recognition as a certified Oracle professional, improved job performance, access to exclusive resources, continuing education opportunities, and staying current with the latest Oracle technologies and best practices.
- Q10: Who should take Oracle Certification Exams?
- A: IT professionals, database administrators, developers, system administrators, and anyone involved in managing and implementing Oracle solutions should consider these certifications to validate their expertise and advance their careers.
- Q11: What types of Oracle Certification Exams are available?
- A: Oracle offers various certification paths, including:
- Q12: How do I prepare for Oracle Certification Exams?
- A: Preparation can include official Oracle University training courses, study guides, practice exams, online tutorials, and hands-on experience with Oracle products and solutions.
- Q13: Where can I take Oracle Certification Exams?
- A: Oracle Certification Exams can be taken online with remote proctoring or at authorized Pearson VUE testing centers worldwide, providing flexibility to fit your schedule and location.
- Q14: How do Oracle Certifications impact my career?
- A: Oracle Certifications significantly boost your career by demonstrating your expertise to employers, making you a more competitive candidate for advanced roles and promotions in IT, database management, cloud computing, and enterprise applications.
- Q15: Are there any prerequisites for Oracle Certification Exams?
- A: Some exams may have prerequisites, such as foundational knowledge or prior experience with Oracle products. Check the specific requirements for each certification path on the Oracle certification website.
- Q16: How often do I need to recertify for Oracle Certifications?
- A: Recertification requirements vary by certification. Some Oracle certifications do not require recertification, while others, especially those related to cloud technologies, may require periodic updates to ensure professionals stay current with the latest advancements.



