2026 Actual Oracle 1Z0-829 Dumps, Updated Exam Questions for Guaranteed Pass

Java SE 17 Developer - Free Practice Questions with Explanations, Exam Dumps, and Complete Practice Pack from DumpsProvider.

Exam Information

VendorOracle
Exam code1Z0-829
Exam nameJava SE 17 Developer
Questions in pack50
Last updatedNovember 26, 2026
Related certificationsOracle Java

Free practice questions with explanations

Oracle 1Z0-829 Practice Questions

Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.

Questions
15
Answered
0
Correct
0
Score
-
  1. 1 Question 1 Single choice Controlling Program Flow

    A logistics team writes a switch statement over a String shipment code in a Java 17 service. Their code has a case for "EXP" that does not end with a break, followed by a case for "STD" that contains the assignment deliveryDays = 5 and a break, and a default branch that sets deliveryDays = 0. A colleague reports that shipments with the code "EXP" are being assigned 5 days instead of the intended 2. The team must fix the defect while keeping the classic switch statement and making no change to the case labels. Which change fixes the defect?

  2. 2 Question 2 Multiple choice Handling date, time, text, numeric and boolean values

    A global event platform stores session start times as java.time.Instant values in UTC. Its scheduling module must display the start time for a user in Asia/Kolkata, compute the length of a session as a Duration in whole seconds, and compare the local calendar date of a session in Europe/Paris with a LocalDate supplied by a report. A developer must choose the correct Date-Time API operations. Which two approaches are correct? (Choose two.)

  3. 3 Question 3 Dropdown Accessing databases using JDBC

    A payroll service runs a batch that inserts salary adjustments into an Oracle table and must roll back the whole batch if any row fails. Auto-commit is currently enabled on the connection, and the developer must write the transaction control code so that all inserts are either committed together or rolled back together. Select the correct value for each blank in the code below. connection.setAutoCommit([1]); try { for (Adjustment a : batch) { insert.setLong(1, a.employeeId()); insert.executeUpdate(); } connection.[2](); } catch (SQLException e) { connection.[3](); }

    Choose the correct value for each blank.

    connection.setAutoCommit();
    try {
    for (Adjustment a : batch) {
    insert.setLong(1, a.employeeId());
    insert.executeUpdate();
    }
    connection.();
    } catch (SQLException e) {
    connection.();
    }
  4. 4 Question 4 Single choice Accessing databases using JDBC

    A retail company runs a nightly batch job in Java 17 that moves inventory rows between two tables in an Oracle database. The job must either apply both updates or neither, and it must not hold the connection open across the network calls to a third-party pricing service that runs between the two updates. The developer currently opens the connection with autoCommit enabled and executes each UPDATE through separate Statement objects. Which change meets the requirements?

  5. 5 Question 5 Single choice Controlling Program Flow

    A logistics application classifies shipment codes using a switch expression on a String. Codes that begin with "EXP" must return 3 days, codes equal to "STD" return 7 days, and all other codes must throw an IllegalArgumentException. The developer wrote the switch with a case label for each exact code and a default branch that returns 0. A reviewer must now guarantee that any new enum-like constant added later is caught at compile time rather than silently falling through. Which change is the BEST approach?

  6. 6 Question 6 Single choice Handling date, time, text, numeric and boolean values

    A billing service computes monthly subscription fees using int arithmetic on cents. A customer's total is 1,000,000,000 cents for the first charge and 1,500,000,000 cents for the second charge. The service adds the two values and stores the result in an int variable, then converts the sum to a long for the ledger. The auditor reports that the ledger shows a negative balance even though both amounts are positive. The developer must fix the defect without changing the database schema or the cents representation. Which change is required?

  7. 7 Question 7 Single choice Handling Exceptions

    A payment gateway client opens a socket through a custom ConnectionLease class that implements AutoCloseable. Its close() method can throw IOException when the remote end has already dropped the session. The method must release the lease and must report a failure from the business logic even if close() also fails, and the original failure must not be lost. The current code calls close() in a finally block and lets any exception from close() replace the business exception. Which implementation meets the requirement with the least change?

  8. 8 Question 8 Single choice Implementing Localization

    A travel booking website serves customers in Germany, France and Japan. Prices are stored as BigDecimal values in euro and yen and must be displayed as currency for each user locale. A pricing engineer writes a method that accepts a Locale and an amount, and must print a percentage discount next to each price in the same locale style. The engineer must also ensure that the currency symbol and digit grouping follow the user's locale rather than the server default. The tests run on a server whose default locale is en_US. Which approach meets the requirements?

  9. 9 Question 9 Multiple choice Managing concurrent code execution

    A reporting service runs several independent aggregation tasks. Each task returns a computed total and may throw a checked exception. The service must submit the tasks to a fixed pool of four threads, wait for all results with a bounded timeout, and never leave worker threads running after the service shuts down. The team also needs to share a counter across the tasks that is updated from multiple threads without locking the entire report. Which TWO actions meet these requirements? (Choose two.)

  10. 10 Question 10 Single choice Packaging and deploying Java code and use the Java Platform Module System

    A company is migrating a Java 17 billing service into the module path. The core module com.billing.core exports the package com.billing.api and uses java.sql. A separate module com.billing.payments is a provider that implements the service interface com.billing.api.Gateway. The core module must discover the payment providers at runtime without compile-time dependency on the provider module, and the provider must remain packaged as a modular jar. The architect also forbids reflection-based loading by class name. Which module descriptor configuration meets the requirements?

  11. 11 Question 11 Drag and drop Using Java I/O API

    A healthcare data team processes daily export files in a Java 17 batch job. Each requirement below must be met using the most appropriate I/O mechanism from the API. Match each requirement to the mechanism that satisfies it.

    Drag each item onto its matching target. On a phone: tap an item, then tap a target.

    Walk a directory tree and visit each regular file without recursion in application code
    Read a large text file line by line without loading the whole file into memory
    Persist a list of Patient objects so they can be restored later in the same Java version
    BufferedReader with readLine and no close
    Files.lines with try-with-resources
    ObjectOutputStream writing Serializable objects
    Files.readAllBytes into a byte array
    Files.walk with a Stream of Path objects
  12. 12 Question 12 Dropdown Working with Arrays and Collections

    A scheduling service keeps pending job identifiers in a collection that must support fast insertion and removal at both ends, and it must reject any attempt to store a null identifier. The developer is writing the setup and retrieval code and must choose the correct declarations. Select the correct value for each blank.

    Choose the correct value for each blank.

    Deque pending = new (); pending.offerFirst("job-7"); String next = pending.();
  13. 13 Question 13 Order list Utilizing Java Object-Oriented Approach

    A developer is refactoring a payment domain class into an immutable record that must still validate its invariants, and a separate sealed hierarchy must model payment outcomes. The team must perform these steps in the correct order for the refactor to compile and to enforce the rules. Arrange the steps in the correct order.

    Drag the steps into the correct order, or use the arrows.

    1. Update each caller to construct the record through the canonical constructor instead of a no-argument constructor
    2. Replace the mutable setter-based class with the record declaration so no mutator methods remain
    3. Declare the permitted subclasses of the sealed PaymentOutcome interface in the same compilation unit or module
    4. Declare the PaymentRequest as a record with its component fields and an explicit compact constructor that validates the amount
  14. 14 Question 14 Single choice Working with Streams and Lambda expressions

    A retail analytics job groups 40 million sales records by region and needs the total revenue and the number of distinct product categories per region. The developer uses a parallel stream with Collectors.groupingBy and a downstream collector. The output is occasionally missing regions and the totals vary between runs. A review shows that the downstream collector accumulates into a shared HashSet that was created outside the stream. The team must keep the parallel stream for performance and needs deterministic output. Which change fixes the problem?

  15. 15 Question 15 Single choice Accessing databases using JDBC

    A hospital reporting service calls a stored procedure in an Oracle database that returns the number of admitted patients through an OUT parameter. The procedure is invoked once per ward, and the application must reuse the same parsed statement across calls to reduce overhead. The developer currently creates a new Statement for each call and concatenates the ward code into the SQL text, which the security team has flagged. Which implementation meets the performance and security requirements?

These are 15 of the 50 questions in the full 1Z0-829 pack.

Get All 50 Questions

Get all 50 questions & answers

748 Satisfied customers
93.4% Pass rate feedback
83.2% Said questions matched
94% Found material helpful

Full access options for Oracle 1Z0-829

Self-study

PDF Version

$40.00 $20.00
  • 50 actual exam questions
  • Compatible with all devices
  • Printable PDF format
  • No download limits
  • 90 days free updates
  • 24/7 customer support

Exam simulation

Online Practice Test

$50.00 $25.00
  • 50 actual exam questions
  • Actual exam environment
  • 90 days free updates
  • Browser-based software
  • 24/7 customer support

100% Money Back Guarantee

Your success comes first

At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the 1Z0-829 Exam (Java SE 17 Developer) on your very first attempt.

In a rare case, if you fail your exam, we will refund your amount without asking a single question.

100%

Security & Privacy

10000+

Satisfied Customers

24/7

Committed Service

100%

Money Back Guranteed