Home

Learning [Kotlin 2.4] Through Examples

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


|French version|

This course teaches the Kotlin 2.4 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 Kotlin port of the course “Learning the Java 25 Language Through Examples” (October 2026), which itself was adapted from a 2008 C# course: same outline, same examples, same overarching theme, but using Kotlin and today’s tools.

After setting up the development environment (JDK 25, IntelliJ IDEA, Gradle), it covers the basics of the language and its null safety, classes, properties, interfaces, sealed classes, data classes, generics, and extension functions, as well as commonly used Kotlin classes (collections, sequences, files, JSON with Jackson, regular expressions), layered architectures with their JUnit tests and dependency injection with Spring, functional types, lambdas, and events, threads and virtual threads, asynchronous programming with coroutines, 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 Claude AI and Serge Tahé