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 »

Embedding JVM in Rust

Java ↔ Rust Interop with the jni Crate !Ivan Yurchenkohttps://media2.dev.to/dynamic/image/width=50,height=50,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fd...

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...

Strange.website

Article URL: https://strange.website/ Comments URL: https://news.ycombinator.com/item?id=46506596 Points: 5 Comments: 0...