Core Java, Volume I

by Cay S Horstmann

Published 15 July 2024

The Classic Guide to the Java Programming Language--Fully Updated through Java 21

Whatever version of Java you are using, Core Java, Volume I: Fundamentals, Thirteenth Edition, will help you achieve a deep and practical understanding of the language and APIs. With hundreds of realistic examples, Java Champion Cay S. Horstmann demonstrates the most powerful and effective ways to get the job done.

Written for experienced programmers looking for in-depth coverage of the Java language and platform, this revised and updated edition continues to be the first choice for serious programmers. The carefully crafted sample programs demonstrate almost every language and library feature, as well as the newest capabilities introduced in Java 21. The examples are purposefully simple to focus on the major points, but, for the most part, they aren't fake and they don't cut corners. They should make good starting points for your own code.

This first of two volumes offers a detailed treatment of fundamental Java programming topics, including object-oriented programming, reflection and proxies, interfaces and inner classes, exception handling, generics, collections, lambda expressions, concurrency, annotations, and the Java Platform Module System.

  • Master foundational techniques, idioms, and best practices for writing superior Java code
  • Leverage the power of interfaces, lambda expressions, and inner classes
  • Take advantage of sealed class hierarchies and pattern matching for processing structured data
  • Harden programs through effective exception handling and debugging
  • Write safer, more reusable code with generic programming
  • Improve performance and efficiency with Java's standard collections
  • Explore simple programs with JShell and assemble complex programs with archives and modules
  • Fully utilize multicore processors with Java's powerful concurrency model

See Core Java, Volume II: Advanced Features, Thirteenth Edition, for coverage of Java 21 enterprise features, including detailed discussions of networking, security, internationalization, and advanced UI programming.

Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.


Core Java, Volume II

by Cay S Horstmann

Published 15 July 2024

The Classic Guide to Advanced Java Programming: Fully Updated for Java 21

Core Java is the leading no-nonsense tutorial and reference for experienced programmers who want to write robust Java code for real-world applications. Now, Core Java, Volume II: Fundamentals, Thirteenth Edition, has been revised to cover the new features and enhancements in the Java 21 long-term support release. As always, all chapters have been completely updated, outdated material has been removed, and the new APIs are covered in detail.

This volume focuses on the advanced topics that a programmer needs to know for professional software development and includes authoritative coverage of enterprise programming, networking, databases, security, internationalization, and native methods, as well as complete chapters on the Streams, XML, Date and Time, Scripting, and Compilation APIs. In addition, the chapters on Swing and Graphics cover techniques that are applicable to both client-side user interfaces and server-side generation of graphics and images.

Cay S. Horstmann clearly explains sophisticated new features with depth and completeness and demonstrates how to use them to build professional-quality applications. Horstmann's thoroughly tested sample code reflects modern Java style and best practices. The examples are carefully crafted for easy understanding and maximum practical value, so you can rely on them to jump-start your own programs.

  • Master advanced techniques, idioms, and best practices for writing reliable Java code
  • Make the most of enhanced Java I/O APIs, object serialization, and regular expressions
  • Connect to network services, harvest web data with the HTTP/2 client, and serve data with the built-in web server or implement your own server
  • Process code via the Scripting and Compiler APIs
  • Work with the Date and Time API, including recent refinements
  • Leverage the Java security model, user authentication, and the security library's cryptographic functions
  • Preview powerful new APIs for accessing "foreign" functions and memory

"This is the definitive reference and instructional work for Java and the Java ecosystem." --Andrew Binstock, Java Magazine

See Core Java, Volume I: Fundamentals, Thirteenth Edition, for expert coverage of Java programming fundamentals, including objects, generics, collections, lambda expressions, concurrency, and functional programming.

Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.