Ideal for working programmers new to Java, this best-selling book guides you through the language features and APIs of Java 21. Through fun, compelling, and realistic examples, authors Marc Loy, Patrick Niemeyer, and Dan Leuck introduce you to Java's fundamentals, including its class libraries, programming techniques, and idioms, with an eye toward building real applications. This updated sixth edition expands the content to continue covering lambdas and streams, and shows you how to use a functional paradigm in Java. You'll learn about the latest Java features introduced since the book's fifth edition, from JDK 15 through 21. You'll also take a deep dive into virtual threads (introduced as Project Loom in Java 19). This guide helps you: Learn the structure of the Java language and Java applications Write, compile, and execute Java applications Understand the basics of Java threading and concurrent programming Learn Java I/O basics, including local files and network resources Create compelling interfaces with an eye toward usability Learn how functional features have been integrated in Java Keep up with Java developments as new versions are released