0% found this document useful (0 votes)
15 views3 pages

1.6 How Program Internally Works in Java

The document discusses how a Java program works internally, including that the source code is compiled into bytecode, the bytecode is verified and loaded by the classloader at runtime, and then the interpreter reads and executes the bytecode.

Uploaded by

harendra tomar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views3 pages

1.6 How Program Internally Works in Java

The document discusses how a Java program works internally, including that the source code is compiled into bytecode, the bytecode is verified and loaded by the classloader at runtime, and then the interpreter reads and executes the bytecode.

Uploaded by

harendra tomar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

How Program Internally Works In Java

Introduction

In this article, you will learn, how normal program works internally and at the runtime in Java with the
figure, given below-

Previously, we learn, how to design and create program in Java. Now, we learn about, how program
works internally. Let’s see-

First, we use any editor or IDE to write a source code. Afterwards, this source code (.java file) is compiled
by Java compiler (javac) and Java compiler changes the file in Java Bytecodes (.class). Run that file (java)
and get an output.
At a runtime

Let’s see how program works-

At the runtime, first, classloader loads the class file, bytecode verifier verifies the code, which is legally
correct and last interpreter reads bytecode file and run it.

Summary

Thus, we learnt, source code is compiled by Java compiler. Java compiler changes the file in Java
Bytecodes. Run the file and also learn, how it works at runtime.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy