OpenJDK plan would add computed constants to Java
An OpenJDK proposal would introduce computed constants to Java. Immutable value holders that are initialized at most once, computed constants offer the performance and safety benefits of final fields while offering more flexibility as to the timing of initialization.
The proposal is currently in a draft status and eyed for standard Java. Driving the effort is the notion that developers should “prefer immutability,” because immutability confers a number of advantages. Immutable objects can only be in one state, which is carefully controlled by its constructor. Immutable objects can be freely shared with untrusted code. And immutability enables all manner of runtime optimizations.
Author: . [Source Link (*), InfoWorld]