Skip to content
Sharp

Testing · interview question

How can build tools like Maven help manage library dependencies in Java projects?

Multiple choiceMediumchapter-10-curatedpremiumtestingunit-testing-with-junit
Choose one answer
Answer and explanation

Correct answer

B. By specifying dependencies in a centralized configuration file.

Why

Maven uses a configuration file (e.g., pom.xml) to specify and manage dependencies, ensuring that all required libraries are included consistently across different environments and builds.

Test yourself on Testing

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

Start free test
All Testing questions →