Wednesday, March 09, 2005

Compiling

Source code must be compiled (translated) into machine code that the computer can understand. Compiled Java source code is called bytecode.

javac is a compiler that translates source code stored in *.java files into bytecode stored in *.class files.

Note: Compile-time is the time during compilation.

Java bytecode cannot run directly on most computers, so you must use the java, the Java Virtual Machine (JVM).

No comments: