Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Java 11 and 12 ??? New Features

You're reading from   Java 11 and 12 ??? New Features Learn about Project Amber and the latest developments in the Java language and platform

Arrow left icon
Product type Paperback
Published in Mar 2019
Publisher Packt
ISBN-13 9781789133271
Length 242 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Mala Gupta Mala Gupta
Author Profile Icon Mala Gupta
Mala Gupta
Arrow right icon
View More author details
Toc

Table of Contents (23) Chapters Close

Preface 1. Section 1: JDK 10 FREE CHAPTER
2. Type Inference 3. AppCDS 4. Garbage Collector Optimizations 5. Miscellaneous Improvements in JDK 10 6. Section 2: JDK 11
7. Local Variable Syntax for Lambda Parameters 8. Epsilon GC 9. The HTTP Client API 10. ZGC 11. Flight Recorder and Mission Control 12. Miscellaneous Improvements in JDK 11 13. Section 3: JDK 12
14. Switch Expressions 15. Miscellaneous Improvements in JDK 12 16. Section 4: Project Amber
17. Enhanced Enums in Project Amber 18. Data Classes and Their Usage 19. Raw String Literals 20. Lambda Leftovers 21. Pattern Matching 22. Other Books You May Enjoy

What this book covers

Chapter 1, Type Inference, introduces type inference with local variables, which was introduced in Java 10. You will learn how to use the var keyword and also the challenges involved.

Chapter 2, AppCDS, covers Application Class-Data Sharing (AppCDS), which extends Class-Data Sharing (CDS). You will learn about both and see them in action.

Chapter 3, Garbage Collector Optimizations, discusses the various GCs and their interfaces for efficient implementation.

Chapter 4, Miscellaneous Improvements in JDK 10, covers the features and improvements in Java 10.

Chapter 5, Local Variable Syntax for Lambda Parameters, explains the local variable syntax for lambda parameters with an introduction to the usage of var with lambda parameters. This chapter also covers its syntax and usage, along with the challenges you may face.

Chapter 6, Epsilon GC, exploreshow Java 11 introduces Epsilon, which reduces the latency in garbage collection. This chapter explains why it is required and its design considerations.

Chapter 7, The HTTP Client API, talks about the HTTP Client API, which enables your Java code to request HTTP resources over a network.

Chapter 8, ZGC, explores a new GC called ZGC, which is scalable with low latency. You will learn about its features and work through examples.

Chapter 9, Flight Recorder and Mission Control, talks about the JFR profiler, which helps to record data, and the MC tool, which helps in the analysis of the collected data.

Chapter 10, Miscellaneous Improvements in JDK 11, covers the features and improvements in Java 11.

Chapter 11, Switch Expressions, covers switch expressions, which are a basic language construct enhanced in Java 12. You will learn how to use these to make your code more efficient.

Chapter 12, Miscellaneous Improvements in JDK 12, covers the features and improvements in Java 12.

Chapter 13, Enhanced Enums in Project Amber, shows how enums introduced type safety to constants. This chapter also covers how each enum constant can have its own distinct state and behavior.

Chapter 14, Data Classes and Their Usage, covers how the data classes in Project Amber are bringing about language changes to define data carrier classes.

Chapter 15, Raw String Literals, covers the challenges that developers face when storing various types of multiline text values as string values. Raw string literals address these concerns, also significantly improving the writability and readability of multiline string values.

Chapter 16, Lambda Leftovers, shows how the lambda leftovers project is improving the functional programming syntax and experience in Java.

Chapter 17, Pattern Matching, works through coding examples to help you understand how pattern matching can change how you write everyday code.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime