System Requirements Check
Before installation, verify your system meets these requirements:
Windows 10/11, macOS 12+, or Linux (Ubuntu 22.04 LTS recommended)
4GB RAM minimum (8GB recommended for modern IDEs)
2GB disk space for JDK + 1GB for IDE
Java Development Kit (JDK) Installation
For Windows:
Download JDK 21 LTS from Oracle’s website

Run the installer (select “Add to PATH” during installation)

Verify installation:
java -version
javac -version
For macOS:
Using Homebrew (recommended):
brew install --cask oracle-jdk
Or download directly from Oracle
Verify with same commands as Windows
For Linux (Ubuntu/Debian):
sudo apt update
sudo apt install openjdk-21-jdk
Hello World
public class HelloWorld{
public static void main(String[] args){
System.out.println("Hello, World!");
}
}