Skip to content
Sharp

Build Tools · interview question

In a Maven project, which lifecycle phase is responsible for running tests?

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

Correct answer

C. Test

Why

The 'test' phase in Maven is responsible for executing the unit tests of the project. This comes after compilation, ensuring that the code is tested before packaging.

Test yourself on Build Tools

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

Start free test
All Build Tools questions →