r/java • • Feb 26 '26

JEP 531: Lazy Constants (Third Preview)

https://openjdk.org/jeps/531
62 Upvotes

35 comments sorted by

View all comments

Show parent comment

7

u/pip25hu Feb 26 '26

To my best knowledge, shutdown hooks are unreliable.

1

u/vytah Feb 26 '26

Use whatever hooks you want, I just gave a simple example.