Skip to content
Sharp

Build Tools · interview question

How would you explain a 'dependency lock' file used for in Gradle in an interview?

Multiple choiceMediumchapter-10-curatedpremiumbuild-toolsdependency-management
Choose one answer
Answer and explanation

Correct answer

C. To lock the project dependencies to specific versions

Why

A 'dependency lock' file in Gradle is used to lock dependencies to specific versions, ensuring consistent builds across different environments and preventing unexpected updates to dependency versions.

Test yourself on Build Tools

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

Start free test
All Build Tools questions →