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 applicationsWrite, compile, and execute Java applicationsUnderstand the basics of Java threading and concurrent programmingLearn Java I/O basics, including local files and network resourcesCreate compelling interfaces with an eye toward usabilityLearn how functional features have been integrated in JavaKeep up with Java developments as new versions are released