Components of JDK :-
There are 2 main components in JDK which are as below :-
JDK (Java Development Kit) = 1 - Development Tools + 2 - JRE (Java Runtime Environment)
| Tool | Description |
|---|---|
| java | The Java Application Launcher: Executes Java applications and applets. It replaces the older jre tool, combining development and deployment functionalities. |
| javac | Java Compiler: Converts Java source code into Java bytecode, producing .class files. |
| javadoc | Documentation Generator: Automatically creates HTML documentation from Java source code comments. |
| jar | Archiver and Manager: Packages related class libraries into a single JAR (Java ARchive) file and manages JAR files. |
| jdb | Java Debugger: Provides a command-line interface for debugging Java programs. |
| Tool | Description |
|---|---|
| appletviewer | Runs and debugs Java applets without a web browser. |
| javah | C Header and Stub Generator: Generates C header files and JNI (Java Native Interface) stubs for native methods. |
| javap | Class File Disassembler: Displays information about Java class files, including bytecode and structure. |
| javaws | Java Web Start Launcher: Launches and manages Java applications distributed via JNLP (Java Network Launch Protocol). |
| jps | Java Virtual Machine Process Status Tool: Lists HotSpot JVMs on the system and provides process details. |
| jrunscript | Command-Line Script Shell: Allows execution of JavaScript and other scripting languages from the command line. |
| jstack | Prints Java stack traces of Java threads, useful for diagnosing thread-related issues (experimental). |
| jstat | JVM Statistics Monitoring Tool: Monitors various JVM statistics, such as garbage collection and memory usage (experimental). |
| jstatd | jstat Daemon: Provides a network interface to monitor JVM statistics (experimental). |
| and many more.... | |
Usage of JDK :-
Components of JRE :-
There are 4 main components in JDK which are as below :-
JRE (Java Runtime Environment) = Java Libraries + Unser Interface Toolkits + Deployment + JVM (Java Virtual Machine)
Usage of JRE :-
Java Runtime Environment (JRE) is used to provide a runtime platform for executing Java applications. It includes the JVM, core libraries, and resources required to run Java programs, ensuring platform independence and handling tasks like memory management, security, and execution of compiled Java code.
Components of JVM :-
There are 3 main components in JVM :-
JVM (Java Virtual Machine) = Class Loader + Memory Areas + Execution Engine
Usage of JVM :-
The JVM interprets or compiles the bytecode into native machine code that can be executed by the host machine. This enables Java programs to run on any device or operating system that has a compatible JVM implementation, adhering to the principle of "Write Once, Run Anywhere."
Your feedback helps us grow! If there's anything we can fix or improve, please let us know.
We’re here to make our tutorials better based on your thoughts and suggestions.