Internal Details About Execution Of Java Program

There is approx seven-factor behind the Execution Of  Java Program

Internal-Details-of-Java-Program

  • first, when you click to run the java program at that time lots of the process should be working his machine background
  • So all processes learn to one by one so understand Internal Details About Execution Of  Java Program.
  1. Edit java code
  2. Compilation (class file convert)
  3. Classloader
  4. Byte code verified
  5. Interpreter
  6. Run time environment
  7. Hardware (machine)

1) Edit java code

  • usually, java code write in Different software like notpade++, Eclipse, Netbeans, intelligent idea depends on u which like to you
  • so you can copy this code and test in your machine
Example

    class HelloWorld
    {
        public static void main(String[] args{
            System.out.println("Hello, World!");
            System.out.println("Welcome to java overflow");
        }
    } 
  

2) compilation


  • when you run on the program at the time first of compiler compilation of your code
  • In the above code java compile name "javac" compile your code.
  • your code run in help of CMD  "javac HelloWorld.java"
  • when you run code that time high-level code(human handwriting code) converts in the byte code(binary code) code.
  • That time ".java"(HelloWorld.java) class file convert into the ".class" (HelloWorld.class). file

3) Classloader


  • Classloader is used when the .class file is generated that time handle class.
  • Classloader management of memory loads the class file.

4) Bytecode verified


  • Bytecode verified is checked the .class file code and check also wrong code write, violated object, illegal code (security purpose) all thing should be validated then send next step.
  • So Bytecode is giving the one type of security.

5) interpreter


  • The interpreter one type of translator.
  • An interpreter is the byte code to convert in machine code
  • interpreter understands the byte code stream, check the code issues, security and convert to the machine code
  • interpreter is platform-independent is like JVM

6) Runtime environment


  • Runtime environment provides run of java program in this machine
  • This provides an environment so built our code and execute

7) hardware (machine)


  • This part is a bridge between the hardware system in your machine, and the JRE code is executed and gets to the output.

So above all step about in the Internal Details About Execution Of  Java Program

Post a Comment

Previous Post Next Post