HOW Code will Executed and run in JAVA?

Prikshit gautamPrikshit gautam
1 min read

Table of contents

Hello Everyone this is Prikshit Gautam sharing my field of vision on the most demanded programming language JAVA.

There are mainly 2 steps that help in giving success to the code to run.

1)Compilation

2)Execution

SOURCE CODE.JAVA --> COMPILER --> BYTE CODE -->JVM(java virtual machine) -->NATIVE CODE

For the compilation process first, the Source code is given by the programmer to the machine then the second component, called COMPILER assembles all the code in the right direction by converting the source code into binary data(0,1).

Then the next step is the execution of code which is implemented by JVM i.e. JAVA VIRTUAL MACHINE which helps in transforming byte code into Native code.

0
Subscribe to my newsletter

Read articles from Prikshit gautam directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Prikshit gautam
Prikshit gautam

student at Thapar Institute of Engg& Tech(CSE)