Skip to content
Sharp

Testing · interview question

What does the Maven 'clean' lifecycle phase do?

Multiple choiceEasychapter-10-curatedpremiumtestingcontroller-testing
Choose one answer
Answer and explanation

Correct answer

D. Deletes the target directory to prepare for a fresh build

Why

The 'clean' phase in Maven deletes the target directory, effectively removing any previously compiled artifacts and preparing the project for a clean build.

Test yourself on Testing

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

Start free test
All Testing questions →