Java Tutorial (Beginner → Advanced)
A practical, step-by-step Java tutorial designed to be beginner-friendly while still taking you all the way to advanced, real-world Java skills.
How to use this tutorial
- Read chapters in order under
docs/tutorial/.
- After each chapter, do the exercises.
- Run the matching code samples under
examples/plain/.
Prerequisites
- A JDK installed (Java 17+ recommended).
- VS Code + Java extensions (or IntelliJ).
Table of contents
- Getting Started: Install, run, and your first program
- Java Basics: types, variables, operators, formatting
- Control Flow: if/switch/loops
- Methods: parameters, return values, overloading
- OOP: classes, objects, encapsulation
- Inheritance & Polymorphism (and when not to use them)
- Interfaces, abstract classes, and design basics
- Exceptions and error handling
- Strings, files, and I/O basics
- Collections: List/Set/Map and Big-O intuition
- Generics (the useful parts)
- Lambdas & Streams
- Dates and time (java.time)
- Testing with JUnit 5 (basics)
- Concurrency: threads, executors, futures
- JVM basics: memory, GC, performance habits
- Build tools: Maven essentials (recommended)
- Next steps: projects to build
Running the code examples
See: examples/plain/README.md