what is jar file in java?
A JAR (Java Archive) is a package file format typically used to aggregate
many Java class files and associated metadata and resources (text, images,
etc.) into one file to distribute application software or libraries on the
Java platform.
In simple words, a JAR file is a file that contains a compressed version of
.class files, audio files, image files, or directories.
The basic format of the command for creating a JAR file is:
jar cf jar-file input-file(s)