Название: Java Cookbook: Problems and Solutions for Java Developers, 5th Edition (Early Release) Автор: Ian F. Darwin Издательство: O’Reilly Media, Inc. Год: 2024-07-17 Страниц: 376 Язык: английский Формат: pdf, epub Размер: 10.1 MB
As Java continues to evolve, this cookbook continues to grow in tandem with hundreds of hands-on recipes across a broad range of Java topics. Author Ian Darwin gets developers up to speed right away with useful techniques for everything from string handling and functional programming to network communication and AI.
Like any of the most-used programming languages, Java has its share of detractors, advocates, issues, quirks,1 and a learning curve. The Java Cookbook aims to help the Java developer get up to speed on some of the most important parts of Java development. I focus on the standard APIs and some third-party APIs, but I don’t hesitate to cover language issues as well.
This is the fifth edition of this book, and it has been shaped by many people and by the myriad changes that Java has undergone over its two and a half decades of popularity. Java 21 is the current long-term supported (LTS) version, and Java 22 is the latest current release at the time of preparation of this edition. The current cadence of releases every six months may be great for the Java SE development team at Oracle, and for developers who want access to the latest-and-greatest, and for click-driven, Java-related news sites, but it “may cause some extra work” for Java book authors, since books typically have a longer revision cycle than Java now does! Java 9, which came out after a previous edition of this book, was a sort-of-breaking release, the first release in a very long time to almost break backwards compatibility, primarily the Java module system. Everything in this edition of the book can be assumed to work on Java 11 or later, unless specified otherwise (see the list of icons in “Icons”). At this point in time, probably nobody should be using Java 8 (or anything before it) for anything. Certainly nobody should be doing new development in Java 8. If you are, it’s time to move on! While Java 11 is considered an LTS release, is is so old that you shouldn’t even use it. Java 17 is the previous LTS, and is an OK place to be if you don’t need all the latest stuff. But if you want the best start on a long-term Java release, start with Java 21.
The goal of this revision of the Java Cookbook is to keep the book up to date with all this change. Aslthough I had to remove a significant amount of material, I’ve included numerous new features. Deletions include many of the complete programs at the ends of chapters. Additions are numerous throughout the chapters. In several places, a few recipes have been combined into one in the interest of simplicity and readability (and reducing page count). And of course I’ve updated a lot of other information along the way.
Who This Book Is For: I’m going to assume that you know the basics of Java. I won’t tell you how to println a string, nor how to write a class that extends another and/or implements an interface. I’ll assume you’ve taken a Java course such as Learning Tree’s Introduction (which I wrote the first version of, decades ago) or worked your way through an introductory book such as:
• Head First Java; a tutorial filled with visual metaphors and other brain-friendly learning techniques; • Java in a Nutshell (O’Reilly); • Think Java: How to think like a computer scientist, a hands-on introduction to computer science and programming via Java; • Learning Java, a book for practicing programmers moving to Java.
Java in a Nutshell, 8th Edition (Final Release) Название: Java in a Nutshell: A Desktop Quick Reference, 8th Edition (Final Release) Автор: Benjamin J. Evans, Jason Clark, David Flanagan...