Code A is accessing object references in the loop. Code B is accessing only primitive types in the loop. Primitive types are more effecient than object references.
This is a technique that can be used in performance critical code. I wouldn't code like this normally, but I would do it if I need to speed it up.
Peter Haggar
------------------
Senior Software Engineer, IBM
author of:
Practical Java