1Z0-829 · topic practice

Java Platform Overview and Packaging practice questions

Practise Oracle Certified Professional Java SE 17 Developer 1Z0-829 Java Platform Overview and Packaging practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Reviewed byJohnson Ajibi· MSc IT Security
20 questionsDomain: Java Platform Overview and Packaging

What the exam tests

What to know about Java Platform Overview and Packaging

Java Platform Overview and Packaging questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common Java Platform Overview and Packaging exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Practice set

Java Platform Overview and Packaging questions

20 questions · select your answer, then reveal the explanation

A company uses CI/CD to build and package a Java 17 application. They want to produce a single executable JAR that includes all dependencies. Which tool should be used to achieve this?

A developer has a module named 'com.example.app' that exports a package 'com.example.api'. Another module 'com.example.client' requires 'com.example.app'. Which directive must be in the module-info.java of 'com.example.client'?

Question 3hardmultiple choice
Read the full NAT/PAT explanation →

A Java 17 application is deployed on a server. The application uses modules but one required module is missing from the module path. Which exception will be thrown at startup?

A development team wants to ensure that a Java 17 application runs with a specific set of modules. They want to minimize the footprint by including only necessary modules. Which tool should they use?

A Java 17 application is packaged as a JAR with a Main-Class manifest entry. The JAR is run using 'java -jar app.jar'. However, the application throws a NoClassDefFoundError for a class that is inside the JAR. What is the most likely cause?

Which TWO statements are true about Java modules in Java 17? (Choose two.)

Which THREE are valid ways to package a Java 17 application for distribution? (Choose three.)

A developer runs 'java --list-modules' and sees the output above. Which command can be used to create a custom runtime image containing only the 'java.base' module?

Network Topology
$ javalist-modulesRefer to the exhibit.```java.basejava.compilerjava.datatransferjava.desktop...

A developer receives the above error when running a modular Java application. What is the most likely cause?

Exhibit

Refer to the exhibit.

```
Error: Unable to initialize main class com.example.Main
Caused by: java.lang.module.ResolutionException: Module com.example.app not found
```
Question 10hardmultiple choice
Read the full NAT/PAT explanation →

A company runs a Java 17 microservice that reads stock market data from a WebSocket and processes it. The application is packaged as an executable JAR using Maven Shade Plugin. Recently, after a dependency update, the application started throwing 'javax.net.ssl.SSLHandshakeException: PKIX path building failed' when connecting to the WebSocket. The security team insists that no certificates should be imported into the default truststore. The application already includes a custom truststore file 'certs.jks' in the resources folder. The developer had been loading it programmatically but the new dependency uses a different SSL context. The application must trust the WebSocket server without modifying JVM defaults. Which action should be taken?

Which TWO statements are true about the Java Platform Module System (JPMS) introduced in Java 9?

A developer runs the command above on a JAR file. Which statement accurately describes the module myapp?

Network Topology
$ jardescribe-modulefile=myapp.jarRefer to the exhibit.myapp jar:file:///opt/app/myapp.jar!module-info.classrequires java.base mandatedexports com.myapp.apiexports com.myapp.internal to myapp.tests
Question 13hardmultiple choice
Read the full NAT/PAT explanation →

A team is developing a large enterprise application using Java 17. The application consists of multiple modules: core (provides logging and configuration), services (business logic), and web (REST endpoints). The modules are packaged as separate JAR files and deployed on a server. During runtime, the web module throws a java.lang.ClassNotFoundException for a class that is part of the core module. The core module's module-info.java exports the package containing the missing class. The web module's module-info.java requires core. However, the services module also needs the same class but uses a different version of it, causing conflicts. The team decides to use the class path for the conflicting package and the module path for the rest. They add the conflicting JAR to the class path and keep the other JARs on the module path. After this change, the web module still cannot find the class, but the services module works fine. What is the most likely cause of the issue?

Which TWO statements about the Java Platform Module System (JPMS) are true? (Choose two.)

Given the output of `java --list-modules` from a Java 17 installation, which module is NOT included by default when using the `--release 17` flag with `javac`?

Network Topology
$ javalist-modulesRefer to the exhibit.```java.basejava.compilerjava.datatransferjava.desktopjava.instrumentjava.loggingjava.managementjava.management.rmijava.namingjava.net.httpjava.prefsjava.rmijava.scriptingjava.sejava.security.jgssjava.security.sasljava.smartcardiojava.sqljava.sql.rowsetjava.transaction.xajava.xmljava.xml.cryptojdk.accessibilityjdk.attachjdk.charsetsjdk.compilerjdk.crypto.cryptokijdk.crypto.ecjdk.dynalinkjdk.editpadjdk.hotspot.agentjdk.httpserverjdk.incubator.foreignjdk.incubator.vectorjdk.internal.edjdk.internal.jvmstatjdk.internal.lejdk.internal.optjdk.internal.vm.cijdk.internal.vm.compilerjdk.internal.vm.compiler.managementjdk.jartooljdk.javadocjdk.jcmdjdk.jconsolejdk.jdepsjdk.jdijdk.jdwp.agentjdk.jfrjdk.jlinkjdk.jpackagejdk.jshelljdk.jsobjectjdk.jstatdjdk.localedatajdk.managementjdk.management.agentjdk.management.jfrjdk.naming.dnsjdk.naming.rmijdk.netjdk.nio.mapmodejdk.randomjdk.sctpjdk.security.authjdk.security.jgssjdk.xml.domjdk.zipfs

A development team is working on a Java 17 application that must be packaged as a custom runtime image for deployment on a Linux server without a JDK installed. The application uses `java.base`, `java.logging`, and `java.sql` modules, and also requires the `jdk.crypto.cryptoki` module for hardware security module (HSM) integration. The team wants to minimize the image size while ensuring all necessary modules are included. They run `jlink --add-modules java.base,java.logging,java.sql,jdk.crypto.cryptoki --output myapp-runtime`. The resulting image runs the application but fails at startup with a `ClassNotFoundException` for `javax.crypto.spec.SecretKeySpec`. Which action should the team take to resolve the issue?

Arrange the steps to read a file using NIO.2 Files.lines() in Java.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

Match each Java 17 feature to its description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Restricts which classes can extend or implement a type

Allows patterns in case labels for type checks and destructuring

Transparent carriers for immutable data

Multi-line string literals with automatic formatting

Switch that can be used as an expression and returns a value

A developer has written a Java class that uses external libraries packaged as JAR files. The application runs correctly when launched from an IDE but fails with a ClassNotFoundException when run from the command line using `java -cp`. What is the most likely cause?

A team is migrating a large monolithic Java 8 application to Java 17 using modules. They want to ensure that only the required packages are exported. Which tool should they use to analyze current dependencies and generate module descriptors?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Java Platform Overview and Packaging sessions

Start a Java Platform Overview and Packaging only practice session

Every question in these sessions is drawn from the Java Platform Overview and Packaging domain — nothing else.

Related practice questions

Related 1Z0-829 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the 1Z0-829 exam test about Java Platform Overview and Packaging?
Java Platform Overview and Packaging questions test whether you can apply the concept in context, not just recognise a definition.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Java Platform Overview and Packaging questions in a focused session?
Yes — the session launcher on this page draws every question from the Java Platform Overview and Packaging domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other 1Z0-829 topics?
Use the topic links above to move to related areas, or go back to the 1Z0-829 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the 1Z0-829 exam covers. They are not copied from any real exam or dump site.