A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Serializable Vs Externalizable
Joined: Apr 08, 2004
Feb 27, 2010 16:36:40
Both Serializable and Externalizable used for Serialization. Externalizable extends from Serializable. Why
has Externalizable for Serialization (looks duplicate interface)?
Joined: Apr 30, 2003
Feb 27, 2010 21:17:06
Externalizable expects the user to define the write and read methods themselves. Serializable provides write and read methods.
Externalizable lets the programmer control the Serialization process.
This is a pretty good summary of the difference:
They give the example of programatically controlling which fields of your object get serialized
I agree. Here's the link:
subject: Serializable Vs Externalizable
Serialization - Seriallizable Vs Externalizable
Serialization and Externalization
io and java.net for certification?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013