Skip to content
Sharp

Project Structure · interview question

In the context of dependency management with Maven, what is the purpose of a 'transitive dependency'?

Multiple choiceHardchapter-10-curatedpremiumproject-structurecontinuous-integration
Choose one answer
Answer and explanation

Correct answer

C. A dependency that is automatically included when a direct dependency requires it

Why

Transitive dependencies are automatically included by Maven when a direct dependency of the project itself has its own dependencies, ensuring all necessary libraries are available for the build.

Test yourself on Project Structure

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

Start free test
All Project Structure questions →