File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Serializable Vs  Externalizable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Serializable Vs  Externalizable" Watch "Serializable Vs  Externalizable" New topic
Author

Serializable Vs Externalizable

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1303
Both Serializable and Externalizable used for Serialization. Externalizable extends from Serializable. Why java has Externalizable for Serialization (looks duplicate interface)?
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 819

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:
[url]http://geekexplains.blogspot.com/2008/06/diff-between-externalizable-and.html
[/url]

They give the example of programatically controlling which fields of your object get serialized
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Serializable Vs Externalizable
 
Similar Threads
Externalizable interface
io and java.net for certification?
Externalizable
Serialization and Externalization
Serialization - Seriallizable Vs Externalizable