Scale Forem

Scale YouTube
Scale YouTube

Posted on

Devoxx: Finally, final means final A deep dive into field immutability in Java by Per Minborg

Finally, final means final dives into the surprising quirks of Java’s final keyword and how the JVM still hedges its bets by assuming some “final” fields might change—potentially slowing your app down. You’ll get a step-by-step look at the compile-time guarantees versus actual JVM behavior, plus practical tips on squeezing better performance out of your existing code today.

Beyond the deep dive, Per Minborg explores ongoing efforts to crank up the strength of final over time and lays out the roadmap for future improvements. And just when you think “immutability or bust,” he wraps up with a peek at the new preview feature Stable Value, which promises the best of both worlds: mutable­-style flexibility with the speed perks of true final fields.

Watch on YouTube

Top comments (0)