Ask a Teacher



WHAT IS JAVA COMPILER?

The Java Compiler (Javac) is a command line tool that reads java source code files and compiles them into executable Java bytecode classes. The Java source code must be contained in files whose file names end with .java extension.

The Java compiler takes files with this extension and generates executable class files with .class extension. It is possible to define more than one class in a single source file and if it happens the Java compiler will generate exactly one class file for each class defined in the source file.


comments powered by Disqus