Introduction to Java

Published: (January 2, 2026 at 07:48 AM EST)
1 min read
Source: Dev.to

Source: Dev.to

How does Java code written by humans get executed by machines?

It uses a translation system (JDK → JRE → JVM → JIT) to convert the programming language to machine language.

What is JDK?

  • JDK stands for Java Development Kit.
  • Java source files should be saved with the .java extension (e.g., Sample.java).
  • If there are no errors, the .java file is compiled into a .class file (e.g., Sample.class).
  • The .java file is human‑readable, while the .class file is not directly readable.
  • If there are errors, the compiler reports them with specific details such as the line number (e.g., line 3).
Back to Blog

Related posts

Read more »

2026: The Year of Java in the Terminal

Article URL: https://xam.dk/blog/lets-make-2026-the-year-of-java-in-the-terminal/ Comments URL: https://news.ycombinator.com/item?id=46445229 Points: 39 Comment...

Day 5: Understanding Java Operators

What is an Operator in Java? In Java, an operator is a special symbol or keyword used to perform operations such as: - Addition - Subtraction - Division - Comp...