By bloid
via javaspecialists.eu
Published: Dec 01 2008 / 09:50
Java's serialization mechanism is optimized for immutable objects. Writing objects without resetting the stream causes a memory leak. Writing a changed object twice results in only the first state being written. However, resetting the stream also loses the optimization stored in the stream.



Add your comment