Book description
Modern Java introduces major enhancements that impact the core Java technologies and APIs at the heart of the Java platform. Many old Java idioms are no longer needed, and new features and programming paradigms can make you far more effective. However, navigating these changes can be challenging.
Core Java for the Impatient, Fourth Edition, is a complete yet concise guide that reflects all changes through Java SE 21, Oracle's latest Long-Term Support (LTS) release. Written by Cay S. Horstmann--author of the classic two-volume Core Java--this indispensable tutorial offers a faster, easier pathway for learning modern Java.
Horstmann covers everything working developers need to know, including the powerful concepts of lambda expressions and streams, modern constructs such as records and sealed classes, and sophisticated concurrent programming techniques. Given the size and scope of Java 21, there's plenty to cover, but it's presented in small chunks organized for quick access and easy understanding, with plenty of practical insights and sample code to help you quickly apply all that's new.
Test code as you create it with JShell
Improve your object-oriented design with records and sealed classes
Effectively use text blocks, switch expressions, and pattern matching
Understand functional programming with lambda expressions
Streamline and optimize data management with the Streams API
Use structured techniques, threadsafe data structures, and virtual threads for effective concurrent programming
Work with the modularized Java API and third-party modules
Take advantage of API improvements for working with collections, input/output, regular expressions, and processes
Whether you're an experienced developer just getting started with modern Java, or have been programming with Java for years, this guide will help you write more robust, efficient, and secure Java code.
..
Table of contents
- About This eBook
- Preface
- Acknowledgments
- 1. Fundamental Programming Structures
- 2. Object-Oriented Programming
- 3. Interfaces and Lambda Expressions
- 4. Inheritance and Reflection
- 5. Exceptions, Assertions, and Logging
- 6. Generic Programming
- 7. Collections
-
8. Streams
- 8.1. From Iterating to Stream Operations
- 8.2. Stream Creation
- 8.3. The filter, map, and flatMap Methods
- 8.4. Extracting Substreams and Combining Streams
- 8.5. Other Stream Transformations
- 8.6. Simple Reductions
- 8.7. The Optional Type
- 8.8. Collecting Results
- 8.9. Collecting into Maps
- 8.10. Grouping and Partitioning
- 8.11. Downstream Collectors
- 8.12. Reduction Operations
- 8.13. Primitive Type Streams
- 8.14. Parallel Streams
- Exercises
- 9. Processing Input and Output
- 10. Concurrent Programming
- 11. Annotations
-
12. The Java Platform Module System
- 12.1. The Module Concept
- 12.2. Naming Modules
- 12.3. The Modular “Hello, World!” Program
- 12.4. Requiring Modules
- 12.5. Exporting Packages
- 12.6. Modules and Reflective Access
- 12.7. Modular JARs
- 12.8. Automatic Modules
- 12.9. The Unnamed Module
- 12.10. Command-Line Flags for Migration
- 12.11. Transitive and Static Requirements
- 12.12. Qualified Exporting and Opening
- 12.13. Service Loading
- 12.14. Tools for Working with Modules
- Exercises
- Index
Product information
- Title: Core Java for the Impatient, 4th Edition
- Author(s):
- Release date: November 2024
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780135404522
You might also like
book
Core Java for the Impatient, 3rd Edition
Clear, Concise Guide to the Core Language and Libraries--Updated through Java 17 Modern Java introduces major …
book
Java Cookbook, 4th Edition
Java continues to grow and evolve, and this cookbook continues to evolve in tandem. With this …
book
Core Java, Volume I: Fundamentals, 12th Edition
The #1 Java Guide for Serious Programmers: Fully Updated through Java 17 Core Java, Volume I: …
book
Learning Java, 5th Edition
If you're new to Java—or new to programming—this best-selling book will guide you through the language …