You are on page 1of 2

Java Development Process

In making our Java program, it follows a certain process.


This process contains five different phases.
These phases are the edit, compile, load, verify, execute.

Different Phases
1. Edit
• The program is created using a text editor and is stored on disk as a source code file
ending with a .java.
2. Compile
• The compiler creates bytecodes and store it on disk as a bytecode file ending with
a .class.
3. Load
• The Class Loader reads the .class file containing the bytecodes from disk and puts those
bytecodes to our primary memory.
4. Verify
• The Bytecode verifier then verifies and confirms that the bytecodes are valid and does
not violate any of Java’s security restrictions.
5. Execute
• Finally, the JVM reads the bytecodes and compiles them into a language a computer can
comprehend to run the program. The program will then run. The program may store
data values from the primary memory as it runs.

Another way of looking at its process is by the diagram below.


In the diagram,
1. The text editor saves a java statement with a source code file ending with .java.
2. The java compiler will then read the file and produce a bytecode file ending with .class.
3. After which, it will be verified by the bytecode verifier as it is being interpreted by the java
virtual machine.
4. After it has been verified and confirmed, it will show the result in the program execution.

You might also like