The differences are as follows:
java command: Notifies the virtual machine to run a .class file.
javac command: compile, used to compile .java files into .class files.
java video tutorial recommendation: java teaching video
javadoc command: is used to generate your own API documentation. It extracts class, method, member and other annotations from the program source code to form an API help document that matches the source code.
In other words, as long as you use a specific set of tags as comments when writing a program, after the program is written, the development documentation of the program can be formed at the same time through Javadoc.
jar is installed with the JDK. It is used for packaging in the bin folder under the JDK installation directory. It has many specific parameters. Usually the JAR file is a compressed file and is the same as the common Zip file. File compatible.
Recommended related articles and tutorials: Introduction to java language
The above is the detailed content of The difference between java, javac, javadoc and jar. For more information, please follow other related articles on the PHP Chinese website!