Compiling and Executing (Testing) a Program

Compiling a Program:
Compiling converts a the Class File into bytecode which can be executed by the JVM (Java Virtual Machine). The Class File must have a .java extension.

Syntax:
javac .java
where
javac is the compilation command

Upon successful compilation, a bytecode file (.class) will be created. All objects that are referenced by the compiled class will be automatically compiled if they are not compiled yet.

Executing (Testing) a Program:
JVM is used to execute the bytecode file (.class).

Syntax:
java
where
java is the program execution program.

Testing is in the 4th stage of the PLC (Product Life Cycle).

0 comments:

Post a Comment