JDK

Published: (February 2, 2026 at 05:58 PM EST)
1 min read
Source: Dev.to

Source: Dev.to

What is JDK?

JDK is a complete software package used to develop Java applications.
It contains tools to write, compile, debug, and run Java programs.

When is JDK used?

  • When you are writing Java code.
  • When you are compiling a Java program.
  • During development time.

How JDK is used?

  1. Write a .java file.
  2. Use javac (the compiler from the JDK) to convert it to a .class file.
  3. Run the program using the java command.

Example

// Hello.java
public class Hello {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}
javac Hello.java
java Hello
Back to Blog

Related posts

Read more »

Operators

What are Operators in Java? Operators are symbols used to perform operations on variables and values. Types of Operators in Java - Arithmetic Operators - Assig...