r/java • • Aug 03 '25

Teach Me the Craziest, Most Useful Java Features — NOT the Basic Stuff

I want to know the WILD, INSANELY PRACTICAL, "how the hell did I not know this earlier?" kind of Java stuff that only real devs who've been through production hell know.

Like I didn't know about modules recently

393 Upvotes

279 comments sorted by

View all comments

Show parent comment

4

u/Alacho Aug 03 '25

So far I've only seen it in Scala

Not on topic, but this is an integral part of Rust. 

3

u/hojimbo Aug 03 '25

And Python since 3.10

1

u/josuf107 Aug 04 '25

And Haskell since version 98