Introduction to JVM

Introduction to JVM

  • JVM stands for Java Virtual Machine. It works as an engine that derives the Java Code.
  • The JVM does not understand Java type, that’s why it compiles .java files into .class files that contain the bytecodes understandable by the JVM.
  • JVM is also responsible for allocating a memory space

JVM Architecture

Class Loader

Class loader loads the class for execution of code.

Method Area

In this pre-class structure stored as constant pool.

Heap

Heap space is used by java runtime to allocate memory to objects and JRE classes. Whenever we create any object, it’s always created in the Heap space.

Stack

Local variables and partial results are store here. Each thread has a private JVM stack created when the thread is created.

Program Register

It holds the address of JVM instruction currently being executed.

Native Method Stack

It contains all native used in application.

Executive Engine

It controls the executions of instructions contained in the methods of the classes.

Native Method Interface

It gives an interface between java code and native code during execution.

Native Method Libraries

It consist of files required for the execution of native code.

NOTE: You will study further about all these terms in detail.

JRE

  • JRE(Java Runtime Environment) provides the libraries, the java virtual machine and other component to run the java program.
  • It does not contain tools and utilities such as compilers or debuggers for developing applets and applications.
  • JRE is a part of JDK but can be downloaded separately.
  • JRE was originally developed by Sun Microsystems Inc. the owned by Oracle Corporation.

JDK

  • JDK stands for Java Development Kit and is a superset of JRE.
  • It contains everything that is in JRE and in additional it contains tools such as the compilers and debuggers necessary for developing applets and applications.

 

Related Post

Decision Control Statement C has three major decision making instructions— the if statement, the if-else statement, and the switch statement. The if Statement It is used to ex...
Data Type And Storage And Keywords To store data inside the computer we need to first identify the type of data elements we need in our program. There are several different types of dat...
Create Firebase single Page Website Create firebase single page Website tutorial In this tutorial we are study how to create single page website by the use of firebase hosting its very ...
Custom View by use of xib in swift Custom View by use of xib in swift We can create the custom and common view by the use xib in swift 3.1 and xcode 8.3.2 . Custom views are common and...
Getting started with C Getting started with C : If we want to communicate with our computer it is very much needed that our computer understands what we want to say to it. ...
Create UITableView (Table View) By the use of stor... How to use UITableView in Above IOS 8 and Swift (UITableView) In this tutorial we are study how to use the TableView in Swift. One of the most common...

Leave a Reply

Your email address will not be published. Required fields are marked *