Java for Beginners: Complete 30-Lesson Course

Java for Beginners: a 30-lesson course

One topic per lesson, real programs with real output, the errors you will actually meet, and practice questions at the end. Follow the lessons in order, or jump to any topic.

Start with Lesson 1 →

Module 1 · Getting Started

Meet Java, install the JDK and run your first program. (Lessons 1–5)

Module 2 · Building Blocks

Variables, data types, casting, input and scope. (Lessons 6–11)

Module 3 · Operators

Arithmetic, comparison, logical, bitwise and precedence. (Lessons 12–15)

Module 4 · Control Flow

Decisions, loops, patterns, break and continue. (Lessons 16–20)

Module 5 · Data and Methods

Arrays, Strings, methods, recursion, ArrayList and exceptions. (Lessons 21–28)

Module 6 · Objects and Revision

Classes and objects, then mini-programs to revise everything. (Lessons 29–30)