I was wondering, is the size() method that you can call on a existing ArrayList cached? Or is it preferable in performance critical code t
size()
ArrayList
Yes.
A quick look at the Java source would tell you the answer.