Skip to content
Sharp

Build Tools · interview question

Which command would you use in Gradle to only compile the Java source files without running tests or creating a package?

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

Correct answer

A. Gradle compileJava

Why

The 'gradle compileJava' command compiles the source files without running tests or creating a package. It focuses strictly on the compilation of the Java source files.

Test yourself on Build Tools

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

Start free test
All Build Tools questions →