Sruthy, with her 10+ years of experience, is a dynamic professional who seamlessly blends her creative soul with technical prowess. With a Technical Degree in Graphics Design and Communications and a Bachelor’s Degree in Electronics and Communication, she brings a unique combination of artistic flair…
Java Deployment was explained clearly in our last tutorial. Here, we will explore more about JVM.
Java Virtual Machine – JVM is a software implementation of a machine.
While downloading JDK, JVM also comes with that. JRE provides the run-time environment. There are different JVM for a different operating system, thus JVM is dependent on the operating system. But Java is independent of the operating system. Don’t forget to take a look at our Entire Java beginner training series.
In this tutorial, we will dive deep and explore more about Java Virtual Machine(JVM) and How it helps in running the java application.
Here is a Video tutorial on JVM:
How JVM Helps in Running Java Application
From the above diagram, we can say that JVM forms a layer between the operating system and Java programs.
Which means, the compiled java program will talk to the JVM and JVM will talk to the operating system. As soon as you install JDK, JVM will also get installed.
Java is a platform as well as a language. JVM has to determine the OS and it will convert the .class files into OS understanding instructions.
JVM is a kind of mediator between the compiled class files and the operating system.
In C language, the program is converted into assembly language and the OS gets the instruction from the assembly.
In the case of java, the compiler doesn’t directly talk with the Operating System. Only the JVM will talk to the OS. Also, you can get different JVM for different OS. That is why Java is independent of the operating system.
Conclusion
Java Virtual Machine is an interpreter, which interprets the java class files into the machine code in a way in which the machine code can be understood by the operating system.
It provides the run-time environment to the Java bytecodes.
This Tutorial gives a Detailed Description of Java as a Platform and its Components i.e. JRE, JDK, Java Virtual Machine and Difference Between JRE vs JDK: Java has been described as a programming language as well as the platform. In our introductory tutorial, we already discussed that a platform is…
Introduction to Java deployment: We learned more about Java Swing in our previous tutorial, in this tutorial, we will learn how to deploy a java project. Once coding has been completed, you have to wrap all the files as a JAR file and that jar file can be deployed in…
This Tutorial Provides an Introduction to the Basics of Java Coding Language. We will Introduce Topics Such as Java Class, OOPS, Syntax, and Core Java Concepts: In our previous tutorials, we have discussed the characteristics and features of the Java language. We have also learned about Java applications. We got…
Hands-on Java Tutorial Series for Beginners: Learn Java Online from Scratch Learn Core Java Programming with the help of this hands-on free Java training course. List of Java Video Tutorials for Beginners to learn Java language from scratch with examples. Get ready to learn Java online with our range of…
In this tutorial, we will learn all about Java char or Character Data Type which is another primitive data type in Java: This tutorial will also include a brief description of char data type, syntax, range, and example programs that will help you understand this primitive data type in detail.…
This tutorial explains how to use the Java Continue Statement in various scenarios while dealing with the loops with the help of programming examples: In this tutorial, we will discuss Java’s “Continue Statement” - one of the jump statements that Java supports. Here, we will cover the topic in detail…
In this tutorial, we will Explore the Java Keywords List and learn about some Important Reserved Words, their Meaning along with Examples: Keywords in Java are the reserved words that act as a key to the code. As these words are predefined, they cannot be used for any other purpose…
This Tutorial Explains Java Integer, Java Long, Max Int, NextInt() Method with Examples. We will also look at Java BigInteger Class & its Application: In this tutorial, we will discuss Java integer and the other primitive types that are related to Java integer like byte, short and long. We will…