Java foundations

Learning path

Java foundations

Start with setup and your first program, then explore objects, flow control and the Java library.

Before you start

No prior Java experience for the first module. Later modules build on the earlier examples.

Open the first guide

Learning path · 34 guides

Later lessons include older screenshots and APIs. Match your JDK to your project and check version-specific details as you go.

Official documentation ↗

Module 1

Set up and run Java

Module 2

Core building blocks

Module 3

Decisions, loops and arrays

Module 4

Objects and inheritance

Module 5

Files and exceptions

Module 6

Strings and collections

Module 7

Threads, networking and interfaces