Core Java, Vol. II-Advanced Features, 12th Edition

Book description

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

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: Advanced Features, Twelfth Edition, has been revised to cover the new features and enhancements in the Java 17 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, modularization, internationalization, code processing, and native methods, as well as complete chapters on the Streams, XML, and Date and Time APIs. In addition, the chapter on Advanced Swing and Graphics covers 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

  • Efficiently connect to network services, implement servers and the new HTTP/2 client, and harvest web data

  • Process code via the Scripting and Compiler APIs, and use annotations to generate code and files

  • Deepen your understanding of the Java Platform Module System, including recent refinements

  • Leverage the Java security model, user authentication, and the security librarys cryptographic functions

  • Preview powerful new APIs for accessing "foreign" functions and memory

See Core Java, Volume I: Fundamentals, Twelfth 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.

Table of contents

  1. Cover Page
  2. About This eBook
  3. Halftitle Page
  4. Title Page
  5. Copyright Page
  6. Pearson’s Commitment to Diversity, Equity, and Inclusion
  7. Contents
  8. Preface
    1. To the Reader
    2. About This Book
    3. Conventions
  9. Acknowledgments
  10. Chapter 1. Streams
    1. 1.1 From Iterating to Stream Operations
    2. 1.2 Stream Creation
    3. 1.3 The filter, map, and flatMap Methods
    4. 1.4 Extracting Substreams and Combining Streams
    5. 1.5 Other Stream Transformations
    6. 1.6 Simple Reductions
    7. 1.7 The Optional Type
    8. 1.8 Collecting Results
    9. 1.9 Collecting into Maps
    10. 1.10 Grouping and Partitioning
    11. 1.11 Downstream Collectors
    12. 1.12 Reduction Operations
    13. 1.13 Primitive Type Streams
    14. 1.14 Parallel Streams
  11. Chapter 2. Input and Output
    1. 2.1 Input/Output Streams
    2. 2.2 Reading and Writing Binary Data
    3. 2.3 Object Input/Output Streams and Serialization
    4. 2.4 Working with Files
    5. 2.5 Memory-Mapped Files
    6. 2.6 File Locking
    7. 2.7 Regular Expressions
  12. Chapter 3. XML
    1. 3.1 Introducing XML
    2. 3.2 The Structure of an XML Document
    3. 3.3 Parsing an XML Document
    4. 3.4 Validating XML Documents
    5. 3.5 Locating Information with XPath
    6. 3.6 Using Namespaces
    7. 3.7 Streaming Parsers
    8. 3.8 Generating XML Documents
    9. 3.9 XSL Transformations
  13. Chapter 4. Networking
    1. 4.1 Connecting to a Server
    2. 4.2 Implementing Servers
    3. 4.3 Getting Web Data
    4. 4.4 The HTTP Client
    5. 4.5 Sending E-Mail
  14. Chapter 5. Database Programming
    1. 5.1 The Design of JDBC
    2. 5.2 The Structured Query Language
    3. 5.3 JDBC Configuration
    4. 5.4 Working with JDBC Statements
    5. 5.5 Query Execution
    6. 5.6 Scrollable and Updatable Result Sets
    7. 5.7 Row Sets
    8. 5.8 Metadata
    9. 5.9 Transactions
    10. 5.10 Connection Management in Web and Enterprise Applications
  15. Chapter 6. The Date and Time API
    1. 6.1 The Time Line
    2. 6.2 Local Dates
    3. 6.3 Date Adjusters
    4. 6.4 Local Time
    5. 6.5 Zoned Time
    6. 6.6 Formatting and Parsing
    7. 6.7 Interoperating with Legacy Code
  16. Chapter 7. Internationalization
    1. 7.1 Locales
    2. 7.2 Number Formats
    3. 7.3 Date and Time
    4. 7.4 Collation and Normalization
    5. 7.5 Message Formatting
    6. 7.6 Text Input and Output
    7. 7.7 Resource Bundles
    8. 7.8 A Complete Example
  17. Chapter 8. Scripting, Compiling, and Annotation Processing
    1. 8.1 Scripting for the Java Platform
    2. 8.2 The Compiler API
    3. 8.3 Using Annotations
    4. 8.4 Annotation Syntax
    5. 8.5 Standard Annotations
    6. 8.6 Source-Level Annotation Processing
    7. 8.7 Bytecode Engineering
  18. Chapter 9. The Java Platform Module System
    1. 9.1 The Module Concept
    2. 9.2 Naming Modules
    3. 9.3 The Modular “Hello, World!” Program
    4. 9.4 Requiring Modules
    5. 9.5 Exporting Packages
    6. 9.6 Modular JARs
    7. 9.7 Modules and Reflective Access
    8. 9.8 Automatic Modules
    9. 9.9 The Unnamed Module
    10. 9.10 Command-Line Flags for Migration
    11. 9.11 Transitive and Static Requirements
    12. 9.12 Qualified Exporting and Opening
    13. 9.13 Service Loading
    14. 9.14 Tools for Working with Modules
  19. Chapter 10. Security
    1. 10.1 Class Loaders
    2. 10.2 User Authentication
    3. 10.3 Digital Signatures
    4. 10.4 Encryption
  20. Chapter 11. Advanced Swing and Graphics
    1. 11.1 Tables
    2. 11.2 Trees
    3. 11.3 Advanced AWT
    4. 11.4 Raster Images
    5. 11.5 Printing
  21. Chapter 12. Native Methods
    1. 12.1 Calling a C Function from a Java Program
    2. 12.2 Numeric Parameters and Return Values
    3. 12.3 String Parameters
    4. 12.4 Accessing Fields
    5. 12.5 Encoding Signatures
    6. 12.6 Calling Java Methods
    7. 12.7 Accessing Array Elements
    8. 12.8 Handling Errors
    9. 12.9 Using the Invocation API
    10. 12.10 A Complete Example: Accessing the Windows Registry
    11. 12.11 Foreign Functions: A Glimpse into the Future
  22. Index
  23. Code Snippets

Product information

  • Title: Core Java, Vol. II-Advanced Features, 12th Edition
  • Author(s): Cay S. Horstmann
  • Release date: April 2022
  • Publisher(s): Oracle Press
  • ISBN: 9780137870899