Skip to content
Sharp

Testing · interview question

In a multi-module Maven project, what is the most effective way to manage dependency versions across all modules?

Multiple choiceHardchapter-10-curatedpremiumtestingcontroller-testing
Choose one answer
Answer and explanation

Correct answer

D. Define dependency versions in the parent POM using dependencyManagement

Why

The dependencyManagement section in the parent POM is used to define the versions of dependencies that should be applied across all child modules, ensuring consistency and simplifying version upgrades.

Test yourself on Testing

A free test with instant, explained results. No account needed.

Start free test
All Testing questions →