Skip to content
Sharp

Build Tools · interview question

Which section of a Maven pom.xml allows you to define versions of transitive dependencies used across multiple modules?

Multiple choiceHardchapter-10-curatedpremiumbuild-toolsdependency-management
Choose one answer
Answer and explanation

Correct answer

B. <dependencyManagement>

Why

The <dependencyManagement> section in a Maven pom.xml is used to define versions of transitive dependencies that are shared across multiple modules. This centralizes dependency version control and avoids conflicts.

Test yourself on Build Tools

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

Start free test
All Build Tools questions →