0% found this document useful (0 votes)
6 views2 pages

JVM new

Uploaded by

adarshnotes2023
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

JVM new

Uploaded by

adarshnotes2023
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SYBCA JVM

Class Loader
The Java class loader, part of the Java Runtime Environment, dynamically loads Java classes
into the Java Virtual Machine. Usually classes are only loaded on demand. The virtual machine
will only load the class files required for executing the program.

method area
The method area stores information about classes, including method and constructor code, field
and method data, and a runtime constant pool. The method area is similar to the storage area for
compiled code in a conventional language or the "text" segment in an operating system process.

heap area
The Java heap is the area of memory used to store objects instantiated by applications running on
the JVM. When the JVM is started, heap memory is created and any objects in the heap can be
shared between threads as long as the application is running.

stack area
The stack is a specific part of a computer's memory that is used to store information about local
variables and function calls. the JVM stack area, often simply referred to as the "stack," is a
memory area that stores data related to the execution of methods. Unlike the heap, which is used
for dynamic memory allocation (e.g., objects), the stack is used for storing:
 Local variables
 Method call details (frames)
 Operand stacks

PC (program counter) register


PC (program counter) register contains the address of the Java virtual machine instruction
currently being executed. register is an important component of digital devices that stores data
and instructions for quick processing. It serves as a temporary storage area where information
can be accessed and manipulated quickly in order to carry out complex tasks.

Native Method Stack


Native memory refers to the memory space that is directly accessible by an application or
program running on a computer system. It is the memory area where the program stores and
manipulates data during its execution The purpose of the Native Method Stack is to keep track of
the execution of a native method. The JVM implementation can decide on its own the size of the
Native Method Stack and how it handles memory blocks. As for the JVM Stack, a memory
allocation error on the Native Method Stack leads to a StackOverflow error.

execution engine
The execution engine is responsible for executing the bytecode (compiled Java code) that is
loaded into the JVM. The execution engine reads the bytecode and performs the necessary
operations to carry out the program's instructions.
SYBCA JVM
Java Native Interface
The Java Native Interface (JNI) is a set of interfaces that allow native methods to interoperate
with the Java virtual machine (JVM). The Java Native Interface (JNI) is a framework that
allows Java applications running in the Java Virtual Machine (JVM) to interact with native code
written in languages like C, C++, or assembly. JNI serves as a bridge between Java and the
native platform, enabling access to platform-specific features, hardware resources, or legacy
code that cannot be implemented in pure Java.

Native method libraries


Native method libraries in the Java Virtual Machine (JVM) are collections of platform-specific
code written in languages like C, C++, or assembly that the JVM uses to perform operations that
cannot be implemented directly in Java. These libraries are an integral part of how the JVM
interacts with the underlying operating system, hardware, and other native resources.

OS
The Operating System (OS) plays a crucial role in the functioning of the Java Virtual Machine
(JVM). The JVM relies on the OS for various low-level operations that enable it to execute Java
programs effectively and interact with system resources. Below are the primary uses of the OS in
the context of the JVM:

Process Management, Memory Management, Thread Management, File and I/O Operations,
Native Libraries and System Calls, etc.

You might also like