JAVA = JDK + JRE + JVM
SNIPPET_MASTERY CHANNEL
Java - Components
JDK JAVA Development Tool-Kit
JAVA JRE JAVA Runtime Environment
JVM JAVA Virtual Machine
SNIPPET_MASTERY CHANNEL
Java - Compiler Java Compiler takes the Programmer-Readable TEXT in your program le
(also called Source Code) and converting it to Bytecodes, which are
Platform-Independent instructions for the Java Virtual Machine
JAVA Compiler Byte Code
Person.class
Load .JAVA File Produces ByteCode
Source Code [.CLASS file]
Person.java
Bytecode
Appearance
Source Code Extension : .java
Byte Code Extension : .class
SNIPPET_MASTERY CHANNEL
fi
Java - JRE JRE is the Java Runtime Environment – JRE Contains a JVM,
Class Libraries,Supporting Files to Run a Java program.
JRE = JVM + Class Lib
Java Runtime Environment + Supporting Files
Java Virtual Machine
Class Loader
Loads .class into JVM
Byte Code Verifier
Byte Code
Person.class Checks .class to be in a Fit State
01010101
JIT Produces Machine Code (machine code)
Just In Time Compiler
SNIPPET_MASTERY CHANNEL
Java - JVM A Java Virtual Machine (JVM) is a virtual machine that can Execute
Java ByteCode. It is the code execution component of the
Windows JVM
Java software platform.
OS
01010101 J
VM E
(machine code) xecu
tes
Linux JVM
01010101
JVM
(machine code) Exec
utes
Byte Code
Person.class
Mac JVM
01010101 JV
NOTE: JVM is Platform M Ex
(machine code) ecu tes
Dependent
SNIPPET_MASTERY CHANNEL
Java = JDK + JRE + JVM Makes Java Platform Independent
JDK java, javac, javah, javap, jar, Debug
java, class libraries, rt.jar, Class Loader,
JRE Byte Code Verifier, JAVA API, Runtime
Env
JVM
Java interpreter
JIT
Garbage Collector
Thread Synch….
SNIPPET_MASTERY CHANNEL
The Structure of Java Class & Source Code File
Person.java Person.class
class Person {
________
class Person { ________
________
________ Java
String name; ________ Compiler
________
________ ________
String getName() ________ ________
________ ________
{ ________ ________
return name;
} }
}
Person Class Person Java source Java
code file bytecode
SNIPPET_MASTERY CHANNEL
Thank You For
Viewing
YouTube Channel:
https://www.youtube.com/@snippet_mastery
Telegram Channel:
t.me/snippet_mastery
SNIPPET_MASTERY CHANNEL