Java   View all facts   Glossary   Help
Java program > application > compiler > javac
Next compilerJIT compiler    Upcompiler, Java development tool

javac
subjectfact 
javachas documentation at Sun    2001-10-19 11:37:12.0
has documentation at Sun    2001-10-19 11:37:12.0
has example of use javac Demonstrate.javaadded by: JK, source: On To Java, 2001-10-19 11:37:12.0
is a subtopic of How Java Works2001-10-19 11:37:12.0
is an instance of compileradded by: JK, source: On To Java, 2001-10-19 11:37:12.0
is an instance of Java development tooladded by: JK, 2001-10-19 11:37:12.0
to run you type javac and the source file name with its extension on the command lineadded by: JK, source: On To Java, 2001-10-19 11:37:12.0
compiler 2001-10-19 11:36:29.0
2001-10-19 11:36:29.0
2001-10-19 11:36:29.0
2001-10-19 11:36:29.0
2001-10-19 11:36:29.0
chooses a constructor based on the number of the actual arguments and the types of the actual arguments2001-10-19 11:36:29.0
compiles source code into bytecode    2001-10-19 11:36:30.0
has purpose to translate source code written in Java into bytecode for the Java virtual machine2001-10-19 11:36:30.0
puts compiled code into a class file with the same name as the source file but with extension .class2001-10-19 11:36:30.0
Java development toolhas purpose to assist a programmer in preparing, debugging and executing Java programs2001-10-19 11:37:07.0
applicationconsists of one or more classes    2001-10-19 11:36:03.0
contains one class that contains a main method which serves as the starting point for the rest of the program    2001-10-19 11:36:03.0
has example of running
java HelloWorld
  
2001-10-19 11:36:03.0
has part 1 main method called its entry point2001-10-19 11:36:03.0
is similar to an applet2001-10-19 11:36:03.0
is run by using a Java interpreter to load the application's main class file - this is normally done from the command-line prompt using the java tool from the SDK2001-10-19 11:36:03.0
Java programcan be compiled on any platform that has a Java compiler    2001-10-19 11:37:09.0
can be run on any implementation of the Java Virtual Machine specification    2001-10-19 11:37:09.0
is portable because it is compiled into bytecode that can run on any computer with a Java Virtual Machine    2001-10-19 11:37:09.0
is usually slower than native code2001-10-19 11:37:09.0
is executed by a Java Virtual Machine2001-10-19 11:37:09.0
must be readable by humans2001-10-19 11:37:09.0
runs on a Java platform2001-10-19 11:37:09.0
should follow consistent guidelines that make the program easy to read2001-10-19 11:37:09.0
to run you may need platform-specific instructions2001-10-19 11:37:09.0

Next compilerJIT compiler    Upcompiler, Java development tool