Java Compiler - javac
suggest changeRemarks
The javac command is used for compiling Java source files to bytecode files. Bytecode files are platform independent. This means that you can compile your code on one kind of hardware and operating system, and then run the code on any other platform that supports Java.
The javac command is included in the Java Development Kit (JDK) distributions.
The Java compiler and the rest of the standard Java toolchain place the following restrictions on the code:
javacreads source files whose names end in.java.- A public top-level class must be in a source file of the same name.
- Compiled class files use the
.classsuffix. On the classpath, the directories must match the package.javacdoes not require the source file’s directory to match the package.
Note: The javac compiler should not be confused with the Just-in-time (JIT) compiler, which compiles bytecode to native code.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents