How JVM Works – Architecture?

JVM(Java Virtual Machine) acts as a run-time engine to run Java applications. JVM is the one that actually calls the main method present in a java code. JVM is a part of JRE(Java Runtime Environment).

Java applications are called WORA (Write Once Run Anywhere). This means a programmer can develop Java code on one system and can expect it to run on any other Java enabled system without any adjustment. This is all possible because of JVM.

When we compile a .java file, .class files(contains byte-code) with the same class names present in .java file are generated by the Java compiler. This .class file goes into various steps when we run it. These steps together describe the whole JVM.


Basics Java Programming

Basics Java Programming + Learn Java + Deploy With Java

Java Programming

is one of the most popular and widely used programming language and platform. A platform is an environment that helps to develop and run programs written in any programming language.
Java is fast, reliable and secure. From desktop to web applications, scientific supercomputers to gaming consoles, cell phones to the Internet, Java is used in every nook and corner.

However to become proficient in any programming language, one Firstly needs to understand the basics of that language.

Therefore, below are the basics of Java in the format in which it will help you the most to get the headstart:

  1. Java Environment: The programming environment of Java consists of three components mainly:
    • JDK
    • JRE
    • JVM

    Learn about setting up the Java environment here: Setting up the environment in Java