Skip to content
Sharp

Build Tools · interview question

Which of the following best describes the purpose of the <dependencyManagement> section in a Maven POM?

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

Correct answer

C. It centralizes version numbers for shared dependencies

Why

The <dependencyManagement> section in a Maven POM is used to centralize and manage dependency versions. It allows you to specify versions of dependencies that can be referenced by child POMs, ensuring consistency across modules.

Test yourself on Build Tools

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

Start free test
All Build Tools questions →