• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Serializable Vs Externalizable

 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Both Serializable and Externalizable used for Serialization. Externalizable extends from Serializable. Why java has Externalizable for Serialization (looks duplicate interface)?
 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic