NOTEBOOK 02 · 36 TOPICS · 3 SERIES

Java.

Modern Java from the language up to the services you deploy, with code you can run. One idea per topic.

Series — guided paths

All 3 Java series →

A series walks you through one subject in order, part by part. Every part is also a topic on the map below, so you can read any of them on its own.

SERIES 01beginner

Java for AI Engineers

The Java skills you need to work with LLMs and build AI agents. Start with how models behave and a plain HttpClient call, then grow into Spring AI, LangChain4j, tools, MCP, RAG and agents. No Python, no maths.

5 PARTS · ABOUT 42 MIN
SERIES 02beginner

Java Coding Interview Prep: 50 Problems in Order

Rusty before a Java coding round? Solve 50 classic interview problems in an order that builds on itself: arrays, strings, collections, HashMap, Comparator, stacks and queues, then streams and the tricky stream puzzles interviewers love. Every problem has plain-English steps, clean code and the follow-up questions you will hear.

9 PARTS · ABOUT 41 MIN
SERIES 03beginner

Python for Java Developers

Learn Python fast by building on the Java you already know. Each part takes one Python idea, gives you one quick Java comparison to anchor it, then teaches it in plain Python, with the traps a Java mind falls into. Short, practical, and aimed at the Python you meet in real AI code.

13 PARTS · ABOUT 63 MIN
THE TOPIC MAP

Everything in this notebook.

SHOW
TAGS

Python for Java Developers

13 topics

Collections & streams

9 topics

Coding interview practice

1 topic

Modern Java

8 topics
  • NEW

    Java 21 features: what's new in Java 21 LTS, with examples

    Java 21 is the long-term-support release that made virtual threads, record patterns, pattern matching for switch and sequenced collections standard. Here is every important feature, what each one does in a line of code, which were only previews, and what to watch when you upgrade from Java 17.

    Article
  • NEW

    Java 21 virtual threads explained: before and after

    For more than two decades every Java thread was glued to an operating-system thread, and a thread waiting on a database held that OS thread hostage. Virtual threads cut the glue. Here is the old model, the problem it caused, and exactly what virtual threads fix.

    ArticleQuiz
    ↳ also in ,
  • NEW

    Java records explained: one-line data classes, with examples

    One line replaces a 40-line data class. Here is what a Java record gives you for free, how to add validation and methods, where records fit, where they don't, and what Java 21's record patterns add.

    ArticleQuiz
  • NEW

    Java var explained: local variable type inference

    var lets the compiler work out a local variable's type from the value you assign. It is still strongly typed Java, not JavaScript. Here is how it works, where you can and can't use it, and the traps worth knowing.

    ArticleQuiz
  • NEW

    Java sealed classes and interfaces explained, with examples

    A sealed class says exactly which classes may extend it, and the compiler enforces the list. Here is why that matters, the rules for permits, final, sealed and non-sealed, and how sealed types plus records give you switch statements the compiler can check.

    Article
  • NEW

    Pattern matching for switch in Java 21, with examples

    Java 21 lets switch match on types, not just constants. Here is how it replaces the old if-instanceof-cast ladder, how when guards and case null work, the dominance and exhaustiveness rules, and how record patterns unpack data right in the case label.

    Article
  • NEW

    Java text blocks explained: multiline strings in Java

    Text blocks let you write JSON, SQL, HTML and LLM prompts in Java exactly as they look, without escaped quotes or \n on every line. Here is the syntax, how Java decides what indentation to keep, the two escapes worth knowing, and how to fill in values.

    Article

AI in Java

4 topics

MCP

1 topic
  • NEW

    MCP Hello World in Java: Build Your First MCP Server and Client

    A complete MCP setup is a host, a client and a server. We build the server and the client in plain Java with the MCP Java SDK, talk over STDIO, and see the only three spots you change for your own tools.

    From the AI notebook

    ArticleVideo ▶
    ↳ also in ,