Getting Started with Java 21 - JDK 21 First Look

  Рет қаралды 19,199

Dan Vega

Dan Vega

10 ай бұрын

In this video you will learn how to get started with Java 21. You will learn where to download Java 21 from. Next you will learn what features are in this release. There are some preview features that In this release and one in particular I want to look so we will cover how to enable preview features.
🔗Resources & Links mentioned in this video:
Open JDK 21 GA Releases: jdk.java.net/21/
SDKMan: sdkman.io/
JDK 21 Features: openjdk.org/projects/jdk/21/
JDK 21 Release Notes: jdk.java.net/21/release-notes
👋🏻Connect with me:
Website: www.danvega.dev
Twitter: / therealdanvega
Github: github.com/danvega
LinkedIn: / danvega
Newsletter: www.danvega.dev/newsletter
SUBSCRIBE TO MY CHANNEL: bit.ly/2re4GH0 ❤️

Пікірлер: 37
@kuldeepsidhu1541
@kuldeepsidhu1541 10 ай бұрын
Thanks Dan for the quick look of JDK 21. Would like to see more deep dive videos on JEP 439 and 444.
@DanVega
@DanVega 10 ай бұрын
I will be working on some content for Virtual Threads but I unfortunately don't have a ton of experience or knowledge about garbage collection. I think with ZGC it might be something you may want to run some tests on for a particular workload.
@ElSrJuancho
@ElSrJuancho 10 ай бұрын
I'm hyped because it is a long term version.
@alexanderruchkov7629
@alexanderruchkov7629 10 ай бұрын
Finally a proper string interpolation? Neat.
@aladeli
@aladeli 10 ай бұрын
My favorite new features are: virtual threads and record pattern matching
@DanVega
@DanVega 10 ай бұрын
Record Pattern Matching is so nice!
@JaimeReyCasadoMonokepos
@JaimeReyCasadoMonokepos 10 ай бұрын
love these quick tips!!!
@DanVega
@DanVega 10 ай бұрын
Glad you like them!
@rajneeshsingh7818
@rajneeshsingh7818 10 ай бұрын
Virtual Threads is mine fav 😊
@DanVega
@DanVega 10 ай бұрын
Same! I love it because for most apps it's very little code change.
@QingtianWang
@QingtianWang 10 ай бұрын
For Spring boot webflux app running on earlier jdk version, how to use Java 21 Virtual thread? Or is there any point of using Virtual thread in netty/webflux based app?
@theWorldOfIss
@theWorldOfIss 10 ай бұрын
Sir do a video hands on practical with java21
@coderlady_
@coderlady_ 9 ай бұрын
Hello, if I were to start a spring boot project from scrach, is it better of using java 21 ?
@happydev512
@happydev512 10 ай бұрын
Hi Dan, what is your vscode theme in this video?, this look really nice.
@DanVega
@DanVega 10 ай бұрын
Monokai Pro
@eugeniu.
@eugeniu. 10 ай бұрын
"A Java version between 8 and 20 is required to execute Gradle. Java 21 and later versions are not yet supported." 😢
@DanVega
@DanVega 10 ай бұрын
I know but I'm sure it will be available soon.
@kensaitakeso
@kensaitakeso 10 ай бұрын
@@DanVega most frustrating thing there is no anonymous classes support in IDEA. and even IDEA EAP is not released yet :(
@DanVega
@DanVega 10 ай бұрын
@@kensaitakesoIt will come 🤷‍♂
@Anbu_Sampath
@Anbu_Sampath 10 ай бұрын
3:30 JEP means JDK enhancement proposal.
@DanVega
@DanVega 10 ай бұрын
I said the wrong thing 2x today, don't know what's wrong with me haha Thank you for catching that.
@Anbu_Sampath
@Anbu_Sampath 10 ай бұрын
@@DanVega I say the same many times.
@joachimdietl6737
@joachimdietl6737 10 ай бұрын
I will try sdkman
@DanVega
@DanVega 10 ай бұрын
It is a great tool
@joachimdietl6737
@joachimdietl6737 10 ай бұрын
@@DanVega i was too quick. i am run windows at work
@JamesStansell
@JamesStansell 10 ай бұрын
I am confused to see --version (two dashes) work for you. I always used to need to use a single dash so I wonder if that is a change that I haven't heard about.
@DanVega
@DanVega 10 ай бұрын
I wish every command line tool would get together and come up with a plan, I never know which one to use for which sdk, tool, etc... 🤷‍♂️
@paragkothari3215
@paragkothari3215 10 ай бұрын
Hi, I will be completing my Bachelor's in 2024 so I am thinking to persue for Masters so my skills sets are like, core Java, Jakarta EE (tutorials available on yt, don't have much deep knowledge), will start spring this month. So like which side I should go cloud/databases means those traditional MS degrees with CS or those courses that are for AI. Like I think to be a SDE for few year then take a jump to may be architect or like those principal dudes but on the side ways that python fears me with AI eating high paying jobs in future... I don't have much knowledge about other ways after Java in the industry. Please guide me and help me how to learn and grow in this industry. We are already connected on LinkedIn, so let's meet there!
@DanVega
@DanVega 10 ай бұрын
I think when you're new and aren't sure what to pursue you need to try a few different things and figure out what interests you. I always find that I'm excited about work when I am working with things that I'm excited about. I hope that helps and best of luck with everything.
@alimrad7760
@alimrad7760 10 ай бұрын
Can you talk about Virtual thread , and make an example with spring boot
@DanVega
@DanVega 10 ай бұрын
I will be working on that for when 3.2 comes out in November!
@yutoobe123
@yutoobe123 10 ай бұрын
Relaunch your Chrome! You miss on security patches.
@DanVega
@DanVega 10 ай бұрын
Good call, thank you!
@pawsdev
@pawsdev 8 ай бұрын
another good questin - when they will meca normal docs site like Kotlin, Python, JS has, normal beatiful docs site with all features and examples, not this ugly javadocs
@vukotici32
@vukotici32 10 ай бұрын
Unnamed variables not working with lambdas Optional.of("").ifPresent(_ -> { throw new RuntimeException("shold not exits"); }); Caused by: java.lang.ClassFormatError: Illegal field name "" @Dan Vega can you confirm
@DanVega
@DanVega 10 ай бұрын
I'm seeing the same issue.
Java is slow and verbose (or so they say)
20:39
Dan Vega
Рет қаралды 10 М.
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 14 МЛН
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 14 МЛН
Understand Recursion in Less than 10 Minutes
9:09
Adam Thometz
Рет қаралды 171
Building Full-Stack Applications in Java with Vaadin
20:50
Dan Vega
Рет қаралды 10 М.
Spring Tips: Making the Joyful Jump to Java 21
47:53
SpringDeveloper
Рет қаралды 30 М.
5 Common Mistakes Spring Developers Make
18:06
Dan Vega
Рет қаралды 16 М.
Test Driven Development (TDD) in Spring
51:09
Dan Vega
Рет қаралды 23 М.
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 3,1 МЛН
ЕС урезает аккумуляторы 🪫
1:00
Не шарю!
Рет қаралды 173 М.
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 6 МЛН
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 409 М.
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,5 МЛН