"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
There is a slight difference. The first piece of code requires 8 bytes on the stack for the variable. I believe it also requires an extra register store/load
Then after it's complete you can find the bottlenecks and optimize them.
The first piece of code requires 8 bytes on the stack for the variable.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.