- Become an expert Java programmer by solving over 200 brand-new, modern, real-world problems
av Anghel Leonard
765,-
Stay on top of the new Java features (up to JDK 21) and find efficient solutions for your programming woes. With over 250 problems and solutions, you'll learn new ways to deal with real-world coding tasks and answers to common interview questions. Purchase of the print or Kindle book includes a free PDF eBookKey FeaturesSolve Java programming challenges and get interview-ready with the power of modern Java 21Test your Java skills using language features, algorithms, data structures, and design patternsExplore tons of examples, all fully refreshed for this edition, meant to help you accommodate JDK 12 to JDK 21Book DescriptionThe super-fast evolution of the JDK between versions 12 and 21 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 the best solution is for a certain problem. There are more than two hundred brand new and carefully selected problems in this second edition, 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 learnAdopt the latest JDK 21 features in your applicationsExplore Records, Record Patterns, Record serialization and so onWork with Sealed Classes and Interfaces for increasing encapsulationLearn how to exploit Context-Specific Deserialization FiltersSolve problems relating to collections and esoteric data structuresLearn advanced techniques for extending the Java functional APIExplore the brand-new Socket API and Simple Web ServerTackle modern Garbage Collectors and Dynamic CDS ArchivesWho this book is forIf you are a Java developer who wants to level-up by solving real-world problems, then this book is for you. Working knowledge of the Java programming language is required to get the most out of this bookTable of ContentsText Blocks, Locales, Numbers, and MathObjects, Immutability, Switch Expressions, and Pattern MatchingWorking with Date and TimeRecords and Record PatternsArrays, Collections, and Data StructuresJava I/O: Context-Specific Deserialization FiltersForeign (Function) Memory APISealed and Hidden ClassesFunctional Style Programming - Extending APIsConcurrency - Virtual Threads and Structured ConcurrencyConcurrency ‒ Virtual Threads and Structured Concurrency: Diving DeeperGarbage Collectors and Dynamic CDS ArchivesSocket API and Simple Web Server