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

Asset Color Catalog | Swift Tutorial Asset Color Catalog is the feature of XCode 9. BY the use of this feature we can maintain the colors easily and avoid the mistakes. We can create the ...
Dart Introduction | Dart programming language Dart Introduction Dart is a scalable language that you can use to write simple scripts or full featured apps. Whether you’re creating a mobile app, w...
Firebase Push notification | Swift tutorial Push Notification by firebase in IOS.For Firebase Push notification we need to have paid apple developer account. You need to Enroll into the Apple D...
C Language – Introduction Why C? There are three important aspects of any language so as C has : The way it stores data, The way it operates on this data and How th...
Strings String can be represented as a single-dimensional character type array. Strings in C are group of characters, digits, and symbols enclosed in quotatio...
Java Operators Java Operators An operator is used to perform an operation over one or more operands. It is a character that represents an action, for example * is a...

Leave a Reply

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