Java 21 API New Features #RoadTo21



Java 21 API New Features #RoadTo21

Java 21 API New Features #RoadTo21

Learn about the many enhancements that Java 21 is giving you in the classes you are using every day.

Java 21 is introducing several major new features: virtual threads and pattern matching. But it also brings new many small additions to classes that you are using every day, and that you can leverage from day one. This video covers the most important ones: the String class, regular expressions, the Collections framework, some additions in Java I/O, the Math class, and, as a bonus some important deprecations you need to be aware of.

⎯⎯⎯⎯⎯⎯ Chapters ⎯⎯⎯⎯⎯⎯
0:00 Intro
1:18 New methods on String, Character, StringBuilder and StringBuffer
2:34 Naming your capturing groups in regular expressions
4:01 Additions to the Collections framework
6:22 Localization in the Date and Time API
6:53 Additions to the Java I/O API
7:49 Using AutoCloseable with HttpClient, ExecutorService, and ForkJoinPool
9:29 Additions to the Math class
11:25 Multiplying BigIntegers in parallel
12:00 Additions to the Thread class
13:25 Additions to the Future interface
14:45 Deprecation of finalize()
15:42 Deprecation of the constructors of the wrapper classes
16:20 Outro

⎯⎯⎯⎯⎯⎯ Resources ⎯⎯⎯⎯⎯⎯
◦ Full #RoadTo21 Playlist ➱ https://www.youtube.com/playlist?list=PLX8CzqL3ArzVHAHWowaXwYFlLk78D8RvL
◦ Java 21 New Feature: Virtual Threads ➱ https://youtu.be/5E0LU85EnTI
◦ Java 21 New Feature: Sequenced Collections – JEP Cafe #19 ➱ https://youtu.be/8RVr6VTfRvw
◦ The JEP 444: Virtual Threads ➱ https://openjdk.org/jeps/444
◦ The JEP 431: Sequenced Collections ➱ https://openjdk.org/jeps/431

Tags: #Java #Java21 #Tools #OpenJDK