1Z0-829 practice question 2 of 10

Which statement is true about migration?

Full set: 50 questions
Answer options
A: Every module is moved to the module path in a top-down migration.
B: Every module is moved to the module path in a bottom-up migration. Correct answer
C: The required modules migrate before the modules that depend on them in a top-down ^migration.
D: Unnamed modules are automatic modules in a top-down migration.
Correct Answer:
B. Every module is moved to the module path in a bottom-up migration.
Explanation

In a bottom-up migration you begin with the low-level utility JARs and work upward, converting each to a real module until the entire codebase resides on the module path. Consequently, every module is ultimately moved to the module path, eliminating the class path.

Why Incorrect

A Top-down migrates only the application-level module(s); dependencies may remain on the class path. C Order described is bottom-up, not top-down. D JARs on the class path are unnamed modules, never “automatic modules.”

References

1. Oracle JDK 17 Migration Guide, “Strategies for Migrating to Modules – Bottom-Up vs Top-Down” (https://docs.oracle.com/en/java/javase/17/migrate/strategies-jpms.html)

2. University of Helsinki, “Advanced Java – Module System”, lecture notes §5 “Migration Approaches” (https://link.springer.com/chapter/10.1007/978-3-030-75719-15)

Keep practicing

Take the free 1Z0-829 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test
Scroll to Top