Java remains one of the most popular programming languages in the world. Whether you're diving into Android development, Spring Boot, or just starting your coding journey, the first real step is installing the Java Development Kit (JDK) .
javac --version If you see version numbers for both, congratulations — you're ready to write Java! Create a file called HelloWorld.java : installing java jdk
Happy coding! ☕
| Vendor | Best For | |--------|-----------| | | Enterprise, long-term support (LTS) | | OpenJDK | Open-source purists | | Amazon Corretto | AWS users, free LTS | | Eclipse Adoptium (Eclipse Temurin) | General development (my recommendation) | Java remains one of the most popular programming
javac HelloWorld.java # creates HelloWorld.class java HelloWorld # runs the program Expected output: Create a file called HelloWorld
openjdk 17.0.9 2023-10-17 OpenJDK Runtime Environment Temurin-17.0.9+9 OpenJDK 64-Bit Server VM Temurin-17.0.9+9 Then check the compiler:
Compile and run it: