Java 21 API New Features #RoadTo21

preview_player
Показать описание
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 ⎯⎯⎯⎯⎯⎯

Tags: #Java #Java21 #Tools #OpenJDK
Рекомендации по теме
Комментарии
Автор

We got 2:34 wrong. Named groups in regular expressions are supported since Java 7. What's new (in 20) is that the methods related to named groups moved up the dependency tree from `Matcher` to the interface `MatchResult`.

java
Автор

Came here for Java, stayed for their use of my favourite local cafe in the background! 😂

OriginGaming
Автор

Thanks! I cant wait for the named String groupings to help parse flat files.

onebeartoe
Автор

Thanks for the overview ! A few nice things that may be shadowed by virtual threads

YvesDautremay
Автор

Thank you for making this video! Very useful

boyneverstop
Автор

Great topics I had to comment and thumbs up.
Thanks a lot José.

khaled.noordin
Автор

Really appreciate this format of doing updates. Also a cool idea: the amount of coffee left in the cup should match the progress of the video ;)

Also thankful that new APIs and methods aren't using checked exceptions! 🎉

nO_dNAL
Автор

thank you for valuable information sir...
btw I like ur coffee cup

ajaythombare
Автор

3:59 With large patterns in a multiline string, instead of using backslashes you can also use the COMMENT flag. This will be more readable.

jeromemainaud
Автор

Apologies, isn't the feature mentioned at 2:34 already available since Java 7?

gmar
Автор

Hi Jose, Big Fan!! Your Coffee looks yum

sisi
Автор

So, named groups, which arrived in Java SE 7, is now suddenly something new?
If you could write the name of the group in some meaningfull way without of a lot a string gymnastics, then there would be some thing new.

mortensen
Автор

after what JDK will be the whole lambda as was introduced in JDK8 deprecated and ousted ? Can't wait the moment

hephestos
Автор

What's new about pattern matching? Named groups have existed for years.

oifbert
Автор

IMO the state enum is missing something.
"CREATED" or "UNSTARTED", because there is no way to track if a task was already started or not.
Which is useful if you have a queue of tasks that are expensive and you want to cut basically anything that isn't started yet, and you didn't expose the Queue itself.
Unless state returns null if it isn't started yet, then i take that back.

Speiger
Автор

In your example at 7:15, your types should be "byte[]" instead if "int[]"

ClydeXT
Автор

08:44 close() method will be called no matter what? what if there is System.exit(0); in the try block?

TheNeoxpert
Автор

Shouldn't it be "Charset" instead of "CharSet" in 7:09?

danthest
Автор

So Autoclosable is a functional interface?

edmaphis
Автор

wow, all these have been in Erlang/OTP, Python, Elixir right at those languages' first version.

JoshuaMuzaaya