Why does ArrayList use transient storage?
It can be serialized; the ArrayList class just takes care of things itself, rather than using the default mechanism. Look at the writeObject() and readObject() methods in that class, which are part of the standard serialization mechanism. If you look at the source, you see that writeObject() does not save the backing array. Instead, it … Read more