W3docs
J

322 chapters

Learn Java

A complete Java tutorial — from your first Hello World on the JVM through object-oriented programming, the collections framework, streams, concurrency, modules, JDBC, and modern features like records, virtual threads, and pattern matching.

Getting started

Java Syntax & Basics

Control flow

Arrays

Methods

Object-Oriented Programming

Packages & Imports

Exception Handling

Strings In Depth

Generics

Collections Framework

Functional Programming

File and I/O

Date and Time

Multithreading and Concurrency

Annotations

Reflection

Java Platform Module System

Networking

JDBC and Databases

JSON and XML

Modern Java Features

JVM and Memory Management

Regular Expressions

Testing

Build Tools

Best Practices

Java How To