Java Cup
Inside Java

News and views from members of the Java team at Oracle

Draft JEP: Computed Constants

Introduce computed constants, which are immutable value holders that are initialized at most once. Computed constants offer the performance and safety benefits of final fields, while offering greater flexibility as to the timing of initialization. This is a preview API.


More at http://minborgsjavapot.blogspot.com/2023/08/java-new-draft-jep-computed-constants.html.