T
tom fredriksen
Hei
Just a quick question.
ex.
testFunc(final String elems)
- how often is "final" actually used in code to make parameters
immutable?
- does using final have an optimisation effect on run-time, both as a
parameter and as a regular variable?
i know it is stated that this can lead to an optimisation, but does
the compiler or jvm utilise it in real life? if so, does anybody
have any idea of how much effect it does have.
/tom
Just a quick question.
ex.
testFunc(final String elems)
- how often is "final" actually used in code to make parameters
immutable?
- does using final have an optimisation effect on run-time, both as a
parameter and as a regular variable?
i know it is stated that this can lead to an optimisation, but does
the compiler or jvm utilise it in real life? if so, does anybody
have any idea of how much effect it does have.
/tom