|
Funny
you should ask! I just wrote a small program to test the same thing a
couple of weeks ago.
I can
honestly say that on JDK 1.3 it makes no difference. I think that the
compiler optimizes the code either way.
However, IMHO, the second one is more clear to me as a
programmer. I can see that myObject is the object you're going to
instantiate/work on for every member of the loop.
Greg
To change your membership options, refer to: http://www.sys-con.com/java/list.cfm |
- [jdjlist] RE: JVM Overhead Greg Nudelman
- [jdjlist] RE: JVM Overhead John Ghidiu
- [jdjlist] RE: JVM Overhead Spencer W. Thomas
- [jdjlist] RE: JVM Overhead willineuer
- [jdjlist] RE: JVM Overhead stacy . c . may
- [jdjlist] RE: JVM Overhead willineuer
