These are the basics.
suggest changeJVM is an abstract computing machine or Virtual machine that resides in your RAM. It has a platform-independent execution environment that executes Java bytecode. (Javac is the Java compiler, which compiles your Java code into bytecode.)
A Java program runs inside the JVM, which is then mapped onto the underlying physical machine. The JVM is one of the programming tools in the JDK.
(Byte code is platform-independent code which is run on every platform and Machine code is platform-specific code which is run on only a specific platform such as windows or linux; it depends on the execution.)
Some of the components:-
- Class Loader - load the .class file into RAM.
- Bytecode verifier - check whether there are any access restriction violations in your code.
- Execution engine - convert the byte code into executable machine code.
- JIT (just in time) - JIT is part of the JVM and is used to improve the performance of the JVM. It will dynamically compile or translate Java bytecode into native machine code during execution time.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents