Hi,
Can someone explain to me what optimizations respectively presumption the compiler makes on the following code?
When I disassembly this code, it is obviously that the compiler translates the
string concatenation to StringBuilder.append() (yes, I know that strings are immutable)
Now if I change the class AsmMain so that all the variables are
final:
... the disassembled output looks like this :
What is the explanation of this optimizations?
Thanks in advance.