Skip to main content
  • Book
  • © 2022

Java 17 Recipes

A Problem-Solution Approach

Apress
  • One of the first code cookbooks for Java 17 developers and programmers
  • A must-have book for any Java programming library
  • Source code can be downloaded from https://github.com/Apress/java17-recipes

Buy it now

Buying options

eBook USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (16 chapters)

  1. Front Matter

    Pages i-xxxvii
  2. Getting Started with Java 17

    • Josh Juneau, Luciano Manelli
    Pages 1-47
  3. Enhancements from Java 9 Through Java 17

    • Josh Juneau, Luciano Manelli
    Pages 49-78
  4. Strings

    • Josh Juneau, Luciano Manelli
    Pages 79-106
  5. Numbers and Dates

    • Josh Juneau, Luciano Manelli
    Pages 107-150
  6. Object-Oriented Java

    • Josh Juneau, Luciano Manelli
    Pages 151-206
  7. Lambda Expressions

    • Josh Juneau, Luciano Manelli
    Pages 207-237
  8. Data Sources and Collections

    • Josh Juneau, Luciano Manelli
    Pages 239-291
  9. Input and Output

    • Josh Juneau, Luciano Manelli
    Pages 293-328
  10. Exceptions and Logging

    • Josh Juneau, Luciano Manelli
    Pages 329-350
  11. Concurrency

    • Josh Juneau, Luciano Manelli
    Pages 351-395
  12. Unicode, Internationalization, and Currency Codes

    • Josh Juneau, Luciano Manelli
    Pages 397-422
  13. Working with Databases

    • Josh Juneau, Luciano Manelli
    Pages 423-478
  14. Java Web Applications

    • Josh Juneau, Luciano Manelli
    Pages 479-514
  15. Email

    • Josh Juneau, Luciano Manelli
    Pages 515-528
  16. JSON and XML Processing

    • Josh Juneau, Luciano Manelli
    Pages 529-555
  17. Networking

    • Josh Juneau, Luciano Manelli
    Pages 557-579
  18. Back Matter

    Pages 581-589

About this book

Quickly find solutions to dozens of common programming problems encountered while building Java applications, with recipes presented in the popular problem-solution format. Look up the programming problem that you want to resolve. Read the solution. Apply the solution directly in your own code. Problem solved!

Java 17 Recipes is updated to reflect changes in specification and implementation since the Java 9 edition of this book. Java 17 is the next long-term support release (LTS) of the core Java Standard Edition (SE) version 17 which also includes some of the features from previous short term support (STS) releases of Java 16 and previous versions.  

This new edition covers of some of the newest features, APIs, and more such as pattern matching for switch, Restore Always-Strict-Floating-Point-Semantics, enhanced pseudo-random number generators, the vector API, sealed classes, and enhancements in the use of String. Source code for all recipes is available in a dedicated GitHub repository.

This must-have reference belongs in your library.

What You Will Learn

  • Look up solutions to everyday problems involving Java SE 17 LTS and other recent releases
  • Develop Java SE applications using the latest in Java SE technology
  • Incorporate Java major features introduced in versions 17, 16, and 15 into your code


Who This Book Is For

Programmers and developers with some prior Java experience. 

Authors and Affiliations

  • Hinckley, USA

    Josh Juneau

  • TARANTO, Italy

    Luciano Manelli

About the authors

Josh Juneau has been developing software and enterprise applications since the early days of Java EE. Application and database development have been his focus since the start of his career. He became an Oracle database administrator and adopted the PL/SQL language for performing administrative tasks and developing applications for the Oracle database. In an effort to build more complex solutions, he began to incorporate Java into his PL/SQL applications and later developed standalone and web applications with Java. Josh wrote his early Java web applications utilizing JDBC and servlets or JSP to work with backend databases. Later, he began to incorporate frameworks into his enterprise solutions, such as Java EE and JBoss Seam. Today, he primarily develops enterprise web solutions utilizing Java EE and other technologies. He also includes the use of alternative languages, such as Jython and Groovy, for some of his projects. Over the years, Josh has dabbled in many different programming languages, including alternative languages for the JVM, in particular. In 2006, Josh began devoting time to the Jython Project as editor and publisher of the Jython Monthly newsletter. In late 2008, he began a podcast dedicated to the Jython programming language. Josh was the lead author for The Definitive Guide to Jython, Oracle PL/SQL Recipes, and Java 7 Recipes, and a solo author of Java EE 7 Recipes and Introducing Java EE 7, which were all published by Apress. He works as an application developer and system analyst at Fermi National Accelerator Laboratory, and he also writes technical articles for Oracle and OTN.  He was a member of the JSR 372 and JSR 378 expert groups, and is an active member of the Java Community, helping to lead the Chicago Java User Group’s Adopt-a-JSR effort. When not coding or writing, Josh enjoys spending time with his wonderful wife and five children, especially swimming, fishing, playing ball, and watching movies. To hear more from Josh, follow him on Twitter at @javajuneau.


Luciano Manelli earned a PhD in computer science from the IT department, University of Bari-Aldo Moro. His PhD focused on grid computing and formal methods, and he published the results in international publications. Luciano obtained several certificates in the IT sector, and, in 2014, began working for the Port Network Authority of the Ionian Sea–Port of Taranto, after working for 13 years for InfoCamere SCpA. He has worked mainly in the design, analysis, and development of large software systems; research and development; testing; and production with roles of increasing responsibility in several areas over the years. Luciano has developed a great capability to make decisions in a technical and business context and is mainly interested in project management and business process management. In his current position, he deals with port community systems and software innovation. Additionally, he has written several IT books and is a contract professor at the Polytechnic of Bari (foundations of computer science), and at the University of Bari-Aldo Moro (programming for web, computer science, and computer lab).



Bibliographic Information

Buy it now

Buying options

eBook USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access