Welcome

Learning the [Java 25] Language Through Examples

created by Anthropic’s AI Claude at the request of Serge Tahé - October 2026


|French version|

This course teaches the Java 25 language through examples: more than two hundred programs, most of them short, all commented line by line, with their execution results reproduced. This is the Java port of the course “Learning the C# 14 Language with .NET 10” (October 2026), itself a rewrite of a 2008 course: same outline, same examples, same overarching theme, but using today’s Java and tools.

After setting up the development environment (JDK 25, IntelliJ IDEA or VS Code, Maven), it covers the basics of the language, classes, records, interfaces, sealed classes, generics, and pattern matching; commonly used Java classes (collections, Stream API, files, JSON with Jackson, regular expressions), layered architectures with their JUnit tests and dependency injection with Spring, functional interfaces, lambdas, and events, threads and virtual threads, asynchronous programming (CompletableFuture), accessing MySQL databases with JDBC and Hibernate, TCP and HTTP network programming, and web services with Spring Boot.

A common thread runs through the entire course: calculating income tax, built in nine versions, ranging from a simple console program to a TCP server and a REST web service, complete with console and web clients.

Prerequisite: prior programming experience in any language.

All courses from AI Claude and Serge Tahé