Image for Java coding problems: become an expert Java programmer by solving modern real-world problems

Java coding problems: become an expert Java programmer by solving modern real-world problems (Second edition.)

See all formats and editions

Stay on top of new Java features and find efficient solutions for your programming woes

Key Features

  • Solve Java programming challenges and get interview-ready with the power of modern Java 20
  • Test your Java skills using language features, algorithms, data structures, and design patterns
  • Explore tons of examples meant to help you accommodate JDK 12 to JDK 20

Book Description

The super-fast evolution of the JDK between versions 12 and 20 has made the learning curve of modern Java steeper, and increased the time needed to learn it. This book will make your learning journey quicker and increase your willingness to try Java's new features by explaining the correct practices and decisions related to complexity, performance, readability, and more.

Jave Coding Problems takes you through Java's latest features but doesn't always advocate the use of new solutions - instead, it focuses on revealing the trade-offs involved in deciding what's the best solution for a certain problem.

There are more than 200 carefully selected problems in this book, chosen to highlight and cover the core everyday challenges of a Java programmer.

Apart from providing a comprehensive compendium of problem-solutions based on real-world examples, this book will also give you the confidence to answer questions relating to matching particular streams and methods to various problems.

By the end of this book, you will have gained a strong understanding of Java's new features and have the confidence to develop and choose the right solutions to your problems.

What you will learn

  • Adopt the latest JDK 12 and JDK 20 features in your applications
  • Solve strings and number problems using the latest Text Blocks and Math Java APIs
  • Work with Sealed Classes and Interfaces for increasing encapsulation
  • Learn how to exploit Context-Specific Deserialization Filters
  • Solve cutting-edge problems relating to collections and esoteric data structures
  • Learn several advanced techniques for extending the Java functional API
  • Perform thread programming via the new Java Virtual Threads
  • Explore the brand-new Socket API and Simple Web Server
  • Tackle modern Garbage Collectors and Dynamic CDS Archives

Who This Book Is For

If you are a Java developer who wants to level-up by solving real-world problems, then this book is for you. Working knowledge of Java is required to get the most out of this book.

Table of Contents

  1. Strings, Locales, Numbers & Math
  2. Objects, Pattern Matching, and Switch Expressions
  3. Working with Date and Time
  4. Record and record pattern
  5. Arrays, collections and data structures
  6. Java I/O: Context-Specific Deserialization Filters
  7. Foreign (Function) Memory API
  8. Sealed and Hidden Classes
  9. Functional style programming - extending API
  10. Concurrency - structured concurrency
  11. Concurrency - virtual threads
  12. Garbage Collectors and Dynamic CDS Archives
  13. New Socket API and Simple Web Server

Read More
Special order line: only available to educational & business accounts. Sign In
£32.99
Product Details
Packt Publishing
183763761X / 9781837637614
eBook (EPUB)
19/03/2024
United Kingdom
English
1 pages
Copy: 100%; print: 100%
Description based on CIP data; resource not viewed.