1Z0-829 Java Platform Overview and Packaging • Complete Question Bank
Complete 1Z0-829 Java Platform Overview and Packaging question bank — all 0 questions with answers and detailed explanations.
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 ```
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag a concept onto its matching description — or click a concept then click the description.
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
Refer to the exhibit. ``` $ jdeps -summary -s -cp lib/*:classes -R app.jar app.jar -> java.base app.jar -> java.sql app.jar -> com.thirdparty.util app.jar -> com.thirdparty.helper (modular) com.thirdparty.helper -> java.base ```
Given the module descriptor for com.example.payment:
module com.example.payment { exports com.example.payment; // does not require com.example.store
}
And the Main class is in the unnamed module (on the classpath). The invocation is:
java --add-modules com.example.store --module-path mods -cp classes com.example.Main
What will happen?
module com.example.app {
requires com.example.lib;
exports com.example.app.api;
opens com.example.app.internal to com.example.lib;
}Error: Could not find or load main class com.example.Main