Skip to content
Sharp

Build Tools · interview question

Which of the following is a primary benefit of using Gradle over Ant for building Java projects?

Multiple choiceEasychapter-10-curatedpremiumbuild-toolsbuild-lifecycle
Choose one answer
Answer and explanation

Correct answer

B. Declarative builds and dependency management

Why

Gradle offers a declarative approach to build configuration and has built-in support for dependency management, which Ant lacks. This makes it easier to manage complex projects with multiple dependencies.

Test yourself on Build Tools

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

Start free test
All Build Tools questions →