r/learnjava • • May 06 '21

What are the most groundbreaking Java features since Java 8, and why?

All the features from Java 9-16 will all fit a use case, but I'd love to make time to go through every one of them, but I need to prioritize, or maybe I underestimated one of them.

If you've had a work scenario where they helped, that'd be great too.

You tell me! šŸ™‚

52 Upvotes

11 comments sorted by

View all comments

2

u/large_crimson_canine May 06 '21

I would guess modules in Java 9. Enables you to defend against reflection attacks. But I’m also a noob so a pro might be able to chime in with something much more significant.

8

u/nutrecht May 06 '21

Modules are hardly used really. They are most important for the JDK itself.

1

u/large_crimson_canine May 06 '21

Good to know. Thank you sir.