Java 21 in Two Minutes... more or less
Vložit
- čas přidán 17. 09. 2023
- Java 21 will be released this week. Let's take a quick look at the key features arriving in this release in two minutes... more or less.
More info ➱ inside.java
Tags: #Java #OpenJDK #Java21 #JDK21 - Věda a technologie
Excited for Virtual Threads
Me too! 🧵
Me too..I am one step away from changing java version from rc to 21.
Among Reactive programming, asynchronous coding , or virtual thread way, they never specify which way to go in terms of performance measure.
I like the way this video was done.
It is best to start with a short overview, like this video and then go on to progressively more in depth videos depending on viewer interest.
Thank you!
Thanks for the update.🥰
I am extremely excited about jdk 21
Me too 😊
1:44 JEP String template
1:46 JEP 442 FFI Foreign Fxn Interface
niiiiice (:
Awesome 👍
That is all ok but can I foretell the execution time of a program without executing it?
Thanks
String templates🔥
1:43 I wish they would have gone the Kotlin route of string templates. It will definitely take some adjusting to get used to the Java way, when released.
simple - just keep using kotlin as syntatic sugar. kotlin take advantage of all of those new jvm features so any update to the jdk is awesome :)
Is virtual threads Java's equivalent for Kotlin Coroutines?
I love java
Why a mug if there's no coffee in it? Just kidding... really nice video. Keep up the good work.
Does switch need yield to be used as an expression?
Hmmm... a bit to unpack here...
yield is used for a multi-line case for a switch expression using the -> syntax, or any switch case using : syntax.
However it's a common misconception that all switches using -> are expressions, they can also be statements (they don't yield value), in which case you wouldn't use yield. They also don't need to be exhaustive (expression must be exhaustive).
However again, if you are using pattern matching, in either a expression or statement (with -> or : syntax), it does need to be exhaustive.
If I were to start a spring boot project from scrach, is it better of using java 21?
from job point of view many companies are still at java 8 or 11
How is this going to affect Android development?
May be it will be better to use ${title} rather than \{title} because every developer is familiar with ${title}. Thanks.
Even better if you could decide that yourself in StringTemplateProcessor!
No, not better. jep describes the reasons.
The \{title} is used because it's invalid syntax when used in a String and it would be a way for the compiler to know what is a normal String and what is a String template.
Because of the existing base of Java code, making the switch to use ${} would cause Java users A LOT of pain. Far more than it would be conceivably be worth than the relatively low cost of learning that \{} is used in Java instead of ${}.
Bye bye public static void main
Haaapy coding ☺️
I was excited to see standalone functions (JEP 445) in Java 21 but it's still in preview. What a shame!
2:07
@@yash1152 preview
Please tell us next time that your cup is empty
😆😆😆
They better have some better examples for threads unlike the way they screwed up the Executer service examples
☕☕☕☕☕
earlier they would have called this Java 5.6.823 release. Not any more 😢
They're just watching what c# is doing at this point
I think it's Scala or Kotlin what they are watching.
and golang. virtual thread is literally copied from goroutine
Is it bad though to incorporate features from other languages?
The new features in Java do not make me vomit like those in C#
please copy kotlin "just the good parts", am not going to switch languages again
cup is empty
java excites me more than ever ☕️🫶🏻🥹