Command Palette

Search for a command to run...

Posts in series "Java Basics"

37 posts

[Java Basics] What is Java? History, Key Features, and Why It Is Still Worth Learning

What is Java? A technical introduction to the Java language and platform: the history from Oak in 1991 to Java 21 LTS, the characteristics that define it, where it runs in production, an honest comparison with Python, JavaScript and C#, and the myths worth killing.

[Java Basics] JDK, JRE and JVM: The Difference and How to Install Java

The precise difference between JDK, JRE and JVM, why the standalone JRE download is gone, how to install Java 21 on macOS, Windows and Linux, and how to read UnsupportedClassVersionError.

[Java Basics] Setting Up a Java IDE and Creating Your First Project

Compare IntelliJ IDEA, Eclipse and VS Code for Java, install one, create your first Java project, understand the src/out layout, and fix the package-does-not-match-directory error.

[Java Basics] Hello World in Java: The Anatomy of a .java File

A token-by-token breakdown of the Java Hello World program: the structure of a .java file, public static void main(String[] args), the filename rule, System.out.println and printf, escape sequences, text blocks and the first compile errors you will hit.

[Java Basics] How to Compile and Run a Java Program: javac, java and the JVM

A precise walkthrough of the Java build and run pipeline: javac, the .class file and its bytecode, the classpath, packages, single-file source launch, jshell, runnable jars, and how the JVM loads, verifies and JIT-compiles your code.

[Java Basics] Variables and Data Types in Java: Primitive vs Reference

A complete guide to Java variables and data types - all 8 primitive types with their real ranges, reference types, stack vs heap, literals, integer overflow, var, final and autoboxing, with every example compiled and run on JDK 21.