Java
Learn modern Java from scratch on a real Java 25 runtime. Build a firm foundation in types, control flow and methods, then work through object-oriented design, exceptions, collections, streams, files and the JVM with an exercise after every lesson.
- 84 practice problems
- 83 lessons
- Free — runs in your browser, no setup
What you'll learn
Syllabus
About this course
Learn Java by writing Java
Java rewards a solid foundation. Its compiler asks you to be precise about types, objects, and failures, then uses that information to catch mistakes before users find them.
This course starts with no programming prerequisites. You will run a working Java program in the first exercise, then build up through variables, decisions, loops, methods, arrays, and text. The second half covers the ideas that make Java useful on larger systems: object design, exceptions, generic collections, lambdas, streams, files, dates, and the JVM.
The examples change with the concept. You will work with game settings, task queues, files, books, shapes, and small application objects instead of carrying one artificial dataset through every lesson. Every runnable lesson ends in a completion exercise on the same Java 25 environment used for its demonstrated output.
The course is intentionally detailed. It teaches current, permanent Java features such as records, switch expressions, text blocks, and the modern date-time and file APIs. Preview features are left out because their syntax can change between Java releases.
After finishing, you will be ready to move into a multi-file Maven or Gradle project, add JUnit tests, and choose a path such as backend development or Android.