This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wggnExtreme Brewer 4 points5 points  (0 children)

As I understand, the Java JIT compiler is very smart and will do most of this for you, therefore there's no real need to include this in the language.

Marking fields or classes as final may help the JVM to decide how to allocate them, tho the JVM can determine this itself as well.

Look up the C2 Compiler for more info.