English, asked by Aayman, 7 months ago

Describe the compiling and execution process of a Java program with example.

Answers

Answered by Aripthajoysce120735
7

Answer: Java, being a platform independent programming language, doesn’t work on one-step-compilation. Instead, it involves a two-step execution, first through an OS independent compiler; and second, in a virtual machine (JVM) which is custom-built for every operating system. The two principle stages are explained below:

Compilation

First, the source ‘.java’ file is passed through the compiler, which then encodes the source code into a machine independent encoding, known as Bytecode. The content of each class contained in the source file is stored in a separate ‘.class’ file

Hope it helps you

Pls mark as the brainliest...

Similar questions