nerdexam
Oracle

1Z0-829 · Question #37

Which statement is true about migration?

The correct answer is B. Every module is moved to the module path in a bottom-up migration. Option B is correct because bottom-up migration works by converting libraries starting from those with no dependencies (the "bottom" of the dependency graph) and moving each one to the module path as a proper named module, continuing upward until the entire application is…

Packaging and Deploying Java code

Question

Which statement is true about migration?

Options

  • AEvery module is moved to the module path in a top-down migration.
  • BEvery module is moved to the module path in a bottom-up migration.
  • CThe required modules migrate before the modules that depend on them in a top-down migration.
  • DUnnamed modules are automatic modules in a top-down migration.

How the community answered

(16 responses)
  • A
    6% (1)
  • B
    88% (14)
  • C
    6% (1)

Explanation

Option B is correct because bottom-up migration works by converting libraries starting from those with no dependencies (the "bottom" of the dependency graph) and moving each one to the module path as a proper named module, continuing upward until the entire application is modularized - so every module ends up on the module path.

Option A is wrong because in top-down migration, unconverted JARs are placed on the module path as automatic modules rather than being fully migrated, so not every module is properly moved there.

Option C is wrong because it describes bottom-up behavior, not top-down. Top-down migration starts at the application level (the top) and works downward - dependencies migrate after the modules that depend on them.

Option D is wrong because unnamed modules and automatic modules are distinct concepts: unnamed modules live on the classpath, while automatic modules are unconverted JARs placed on the module path. Top-down migration uses automatic modules, not unnamed ones.

Memory tip: Think "Bottom-Up = Build Up the module path" - you're building a complete, fully modularized module path from the ground level, so everything ends up there. Top-down is the opposite: you start at the app and leave stragglers as automatic modules.

Topics

#Java module system (JPMS)#bottom-up migration#module path#module dependencies

Community Discussion

No community discussion yet for this question.

Full 1Z0-829 Practice