Build tools in java

A build tool is utility program to automate the process of repetitive tasks like compiling source code and creating files etc. A build tool can be executed from the command line.
Note: Apache Ant, Maven and Gradle are the commonly used building tools in java.

Why build tools are used?

Build tools are used to automate the process of repetitive tasks like source code compilation etc and take this burden away from the developers.