Java Concurrency: Final

What does it mean by FINAL?


(Definition below only applicable to JDK6+)

1) Address of enclosing object not allowed to escape util final variable for initialized and change made to memory done
2) JVM can execute special CPU caching instruction
3) All change in constructor to final variable, even reference will be pushed to memory


Comments

Popular posts from this blog

test

Java Object Size and Overhead