Java SE 17 Developer — Question 7
Which statement is true about migration?
Answer options
- A. Every module is moved to the module path in a bottom-up migration.
- B. Every module is moved to the module path in a top-down migration.
- C. Unnamed modules are automatic modules in a top-down migration.
- D. The required modules migrate before the modules that depend on them in a top-down migration.
Correct answer: D
Explanation
The correct answer is D because, in a top-down migration, the essential modules must be migrated first to ensure that dependent modules can function properly. Options A and B misrepresent the migration direction, while option C incorrectly describes the role of unnamed modules in the migration process.