
- Java Tutorial
- Java - Home
- Java - Overview
- Java - Environment Setup
- Java - Basic Syntax
- Java - Object & Classes
- Java - Constructors
- Java - Basic Datatypes
- Java - Variable Types
- Java - Modifier Types
- Java - Basic Operators
- Java - Loop Control
- Java - Decision Making
- Java - Numbers
- Java - Characters
- Java - Strings
- Java - Arrays
- Java - Date & Time
- Java - Regular Expressions
- Java - Methods
- Java - Files and I/O
- Java - Exceptions
- Java - Inner classes
- Java Object Oriented
- Java - Inheritance
- Java - Overriding
- Java - Polymorphism
- Java - Abstraction
- Java - Encapsulation
- Java - Interfaces
- Java - Packages
- Java Advanced
- Java - Data Structures
- Java - Collections
- Java - Generics
- Java - Serialization
- Java - Networking
- Java - Sending Email
- Java - Multithreading
- Java - Applet Basics
- Java - Documentation
- Java Useful Resources
- Java - Questions and Answers
- Java - Quick Guide
- Java - Useful Resources
- Java - Discussion
- Java - Examples
What are the different steps involved to execute a Java program?
Java program execution follows 5 majors steps
- Edit - Here the programmer uses a simple editor or a notepad application to write the java program and in the end give it a ".java" extension.
- Compile - In this step, the programmer gives the javac command and the .java files are converted into bytecode which is the language understood by the Java virtual machine (and this is what makes Java platform independent language). Any compile time errors are raised at this step.
- Load - The program is then loaded into memory. This is done by the class loader which takes the .class files containing the bytecode and stores it in the memory. The .class file can be loaded from your hard disk or from the network as well.
- Verify - The bytecode verifier checks if the bytecode loaded are valid and do not breach java security restrictions.
- Execute - The JVM interprets the program one bytecode at a time and runs the program.
- Related Articles
- What are the steps to execute Flow API in Java 9?
- What are the steps involved to use a CURSOR in any COBOL-DB2 program?
- What are the Steps Involved in Effective Collection Procedure?
- What are the steps involved in preparing the trial balance?
- What are the steps involved in Association Rule Clustering System?
- What are the steps involved in risk management in information security?
- Steps involved in compilation of a COBOL-DB2 program
- What are the different steps in using MySQL cursor?
- Explain the steps involved in constructing a circle.
- What are the steps involved in data mining when viewed as a process of knowledge discovery?
- What are the steps to read static members in a Java class?\n
- What are the 4 steps to convert C program to Machine code?
- Explain the steps involved in preparing a bank reconciliation statement
- Steps involved in Financial Planning Process
- List the steps involved in the preparation of fabric.

Advertisements