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.

Β 

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.