Link Details

Link 137729 thumbnail
User 111696 avatar

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.
  • 10
  • 1
  • 895
  • 264

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (1)