• 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

difference between serializing and externalizing

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the difference between serializing an object and externalizing an object?
Choice 1
Externalizing is used by the Java compiler to produce raw class files.
Choice 2
Serializing is always faster than externalizing.
Choice 3
Externalizing is older than serializing and is now deprecated.
Choice 4
Externalizing is used to read and write objects to network sockets by implementing the readSocket and writeSocket methods of Externalizable.
Choice 5
Externalizing gives control over the read/write process by implementing the readExternal and writeExternal methods of Externalizable.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Serialization is the process by which you write the state of an object into a flat file [or hard disk]. Externalization is the process of serializing an object over the network. Externalization interface has just two methods. Hence choice 5 is right.
 
reply
    Bookmark Topic Watch Topic
  • New Topic