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

Select a Random Element from a Stream

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

1 day ago

Estimate π Using Monte Carlo Method

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

3 weeks ago

Longest Substring with K Distinct Characters

Given an integer k and a string s, write a function to determine the length…

3 weeks ago

Staircase Climbing Ways

There is a staircase with N steps, and you can ascend either 1 step or…

4 weeks ago

Autocomplete System Implementation

Build an autocomplete system that, given a query string s and a set of possible…

4 weeks ago

Job Scheduler Implementation

Design a job scheduler that accepts a function f and an integer n. The scheduler…

4 weeks ago