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
From the brand

Explore Java resources
More Java
More From O’Reilly

Sharing the knowledge of experts
O’Reilly’s mission is to change the world by sharing the knowledge of innovators. For over 40 years, we’ve inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
Publisher : O’Reilly Media
Publication date : September 26, 2023
Edition : 6th
Language : English
Print length : 549 pages
ISBN-10 : 1098145534
ISBN-13 : 978-1098145538
Item Weight : 2.31 pounds
Dimensions : 6.75 x 1.25 x 9 inches
Best Sellers Rank: #1,099,405 in Books (See Top 100 in Books) #34 in Beginner’s Guides to Java Programming #196 in Object-Oriented Design #549 in Introductory & Beginning Programming
Customer Reviews: 4.4 4.4 out of 5 stars (15) var dpAcrHasRegisteredArcLinkClickAction; P.when(‘A’, ‘ready’).execute(function(A) { if (dpAcrHasRegisteredArcLinkClickAction !== true) { dpAcrHasRegisteredArcLinkClickAction = true; A.declarative( ‘acrLink-click-metrics’, ‘click’, { “allowLinkDefault”: true }, function (event) { if (window.ue) { ue.count(“acrLinkClickCount”, (ue.count(“acrLinkClickCount”) || 0) + 1); } } ); } }); P.when(‘A’, ‘cf’).execute(function(A) { A.declarative(‘acrStarsLink-click-metrics’, ‘click’, { “allowLinkDefault” : true }, function(event){ if(window.ue) { ue.count(“acrStarsLinkWithPopoverClickCount”, (ue.count(“acrStarsLinkWithPopoverClickCount”) || 0) + 1); } }); });
4 reviews for Learning Java: An Introduction to Real-World Programming with Java
Add a review
Original price was: $79.99.$53.35Current price is: $53.35.


wiredweird –
Good, basic text
I used to program almost exclusively in Java, back around version 9 or so. But, for the last few years, I’ve been working in other languages. The arcana of C++ made me miss the relatively straightforward semantics of Java. (Have you seen C++ template “metaprogramming”? It’s a way to turn a compiler for an imperative language into an interpreter for a functional language.) Python’s typed data but untyped variables and interfaces severely tarnished my introduction to the language – a project with code shared between about a dozen developers, for which I found it entirely unsuitable. If the language had typed method interfaces, that by itself would have cut my development time in half, maybe more. Too many people fail to understand that coding is only about 10% for talking to the machine, but 90% for the benefit of other people, present and future, that have to use or maintain the code.So, I’m back to Java at version 21, which this book describes, and eager to see what’s developed since I’ve been away. This book does mention many of the recent enhancements. The emphasis, though, is on the basic features, the ones that haven’t changed, with newer capabilities discussed only in passing. For my purposes, it was a goldmine of information, keeping in mind that a modern gold mine yields one half to one gram of gold per tonne of ore.I can see this book being useful for many readers. It just wasn’t what I was looking for, though.– wiredweird
Anonymous –
Great layout!
Book is really well structured and great for beginners.
Julio A. –
Ya tenia la versión física anterior a esta, compre la nueva para revisar los cambios y continuar mis estudios y si hay varios cambios, recomendado.
Timothy Greenwood –
Clear examples and efficiently organized.Completely up-to-date and a pleasure to read