What is JDK?
JDK (Java Development Kit) is a software development environment used for developing Java applications. It includes tools and libraries needed to write, compile, and run Java programs.
π Whatβs inside the JDK?
- JRE (Java Runtime Environment): Allows you to run Java applications.
-
Javac (Java Compiler): Converts
.java
files into.class
bytecode files. - Java (Launcher): Runs the compiled Java bytecode.
-
Development Tools: Debuggers, documentation generators (
javadoc
), and other utilities.
π§© Key Components:
Tool | Purpose |
---|---|
javac |
Compiles Java source code |
java |
Launches Java applications |
javadoc |
Generates documentation from code |
jdb |
Java debugger |
jar |
Packages files into a JAR (Java Archive) |
π§π» Use Case:
If youβre writing Java code β whether itβs a small console app or a complex enterprise application β you need the JDK.
π Without the JDK, you can run Java programs (via the JRE) but canβt develop or compile them.
Β