Java: From Zero to Advanced
A free Java course from installing JDK 21 to streams, concurrency, virtual threads, Maven, JUnit 5 and a finished project. Plain explanations and complete code you can run.
This course takes you from your first Java program to the features professional developers use every day. It is written for JDK 21, the current long-term support release, and every example uses modern Java where it makes the code shorter or safer.
The first lessons assume no programming experience: installing the JDK, the syntax, types, strings, control flow and methods. Then we cover collections, classes, inheritance, interfaces, records, enums and sealed types. After that we deal with the things that make programs reliable: exceptions, generics, files and the NIO API.
The later lessons cover lambdas and streams, Optional, concurrency with executors and virtual threads, Maven and Gradle, testing with JUnit 5 and a small REST service. The last lesson is a complete project that uses most of what you learned.
If you already know another language, you can skim the early lessons and start at the object-oriented ones. Each lesson ends with an exercise, and I suggest you do them. Reading about code teaches much less than typing it.
Getting started
Language basics
Data and methods
Object-oriented Java
Writing robust code
Modern Java
The HussoTech Academy account publishes and maintains the free courses on this site. Lessons are written and reviewed by Ghulam Murtaza and checked against the current versions of each language and tool.