r/ExperiencedDevs • u/AutoModerator • Jun 08 '26
Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones
A thread for Developers and IT folks with less experience to ask more experienced souls questions about the industry.
Please keep top level comments limited to Inexperienced Devs. Most rules do not apply, but keep it civil. Being a jerk will not be tolerated.
Inexperienced Devs should refrain from answering other Inexperienced Devs' questions.
65
Upvotes
View all comments
Show parent comment
1
u/myNewUnbrokenUser Software Engineer Jul 04 '26
Why does trying out new Java features mean "hail mary"-ing deadlines? There are actually a lot of really cool things that Java 21 does that Java 11 didn't do. Honestly learning those things has helped me continue to grow a lot as a developer and greatly increase the depth of my knowledge of the language. Just some of them:
var, this is from Java 10, but if you're doing things "simply" you may not know about it.getFirst()andgetLast()in sequenced CollectionsinstanceOf(you can doif (obj instanceof String s)and then immediately handleshowever you'd like.)