JVM Architecture Runtime Data Area/Memory Structure
Class loader is a subsystem in JVM, which is primarily responasible for loading the java classes, there are 3 different class loaders :
We can also create our own classloader by extending the Classsloader class Classloader is primarily performs three basic activities, in this order Loading → Linking - Initialization
Runtime Data Areas(Heap | Method Area | JVM Stacks | PC Register | Native Stacks)
Created at JVM startup and shared among all threads like Heap.
Interpreter is the one that reads the class files or bytecode and exectutes it one by one. The problem with the interpreter is that, when a method is called multiple times, it interprets those lines of bytecode again and again.
JIT compiler helps in overcoming the problem of the interpreter. When repeated method calls occur, JIT compiler compiles the bytecode to native code. This native code will be used directly for repeated method calls . JIT compiler contains few components to achieve this feature.
It is responsible for interacting with native libraries and makes it avvailable for the JVM execution engine.