HOW Code will Executed and run in JAVA?

HOW Code will Executed and run in JAVA?

Table of contents

No heading

No headings in the article.

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.