Categories: Java

Java Virtual Machine(JVM)

Programs written in Java are compiled into Java Byte code, which is then interpreted by a special Java Interpreter for a specific platform. Actually, this Java interpreter is known as the Java Virtual Machine(JVM). The machine language for the Java Virtual Machine is called Java byte code.

The Java interpreter, when run on any machine, looks and acts like a “virtual” processor chip, hence the name JVM. The Java Virtual Machine is a software abstraction that runs on top of existing processors. It shields Java applications from the underlying operating system. The Java Virtual Machine is a software or hardware implementation of the Java Virtual Machine.

The Java Platform is made up of the JVM and Java APIs. The Java API (Application Programming Interface) are compiled code libraries that you can use in your programs. In other words, the Java API is a set of functions and variables that programmers can use in their programs.

What it does

The JVM performs following

  • Loads code
  • Verifies code
  • Executes code
  • Provides runtime environment

JVM provides definitions for the:

  • Memory area
  • Class file format
  • Register set
  • Garbage-collected heap
  • Fatal error reporting etc.
JVM Architecture

Let’s understand the internal architecture of JVM. It contains a class loader, memory area, execution engine, etc.

Note: also read about the What is Java programming language

Follow Me

If you like my post please follow me to read my latest post on programming and technology.

https://www.instagram.com/coderz.py/

https://www.facebook.com/coderz.py

Share
Published by
Rabecca Fatima

Recent Posts

Find Intersection of Two Singly Linked Lists

You are given two singly linked lists that intersect at some node. Your task is…

12 hours ago

Minimum Cost to Paint Houses with K Colors

A builder plans to construct N houses in a row, where each house can be…

3 days ago

Longest Absolute Path in File System Representation

Find the length of the longest absolute path to a file within the abstracted file…

3 weeks ago

Efficient Order Log Storage

You manage an e-commerce website and need to keep track of the last N order…

1 month ago

Select a Random Element from a Stream

You are given a stream of elements that is too large to fit into memory.…

1 month ago

Estimate π Using Monte Carlo Method

The formula for the area of a circle is given by πr². Use the Monte…

2 months ago