Web Development

General discussion


Choose your own version of serialization

By MaryWeilage Editor ·
This week's Java e-newsletter discusses choosing your own version of serialization. Is this tip useful to you in your development work? What topics would you like us to cover in future editions of the e-newsletter? Please let us know.

If you aren't subscribed to the free Java e-newsletter, click the following link to automatically sign up:

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Discouraged by SUN

by avia In reply to Choose your own version o ...

As far as I know, explicitly defining the serial version UID in a java class is discouraged by SUN, for recent java releases. In earlier releases, explicitly defining the UID could sometimes help improve the performance of the serialization process -- which was the main purpose for using it. However, with later java releases, there is no performance gain when using an explicitly defined UID, so it's not a good idea to use it nowadays.


Related Discussions

Related Forums