New features comming in Java 25
by java-man on 3/25/2025, 6:42:21 PM
Stable values are good, though I would rather see a 'lazy' keyword.
Something like this:
private static final lazy Log log = Log.get();
Stable values are good, though I would rather see a 'lazy' keyword.
Something like this:
which instantiates the `log` field atomically on the first use.