I Think if you want to provide custom serilization for your class you use Externalizable. It has two methods that you implement. but with serizlizable you cannot do so.
Regards<br />Sandy<br />[SCJP 5.0 - 75%]<br />[SCWCD 1.4 - 85%]<br />------------------<br />Tiger, Tiger burning bright,<br />Like a geek who works all night,<br />What new-fangled bit or byte,<br />Could ease the hacker's weary plight?
"Riya", welcome to JavaRanch. I must point out to you that your displayed name does not conform to our JavaRanch Naming Policy. We require a displayed name in the format <first name><space><family name>, preferably you real names. We usually disable profiles with nonconforming displayed names after the first few posts. Thanks, -Barry
By using Serializable interface , JVM takes care of the object information and serializes it as per the standard process including all the info as specified.This is the null interface.
By using externizable interface, You need to take care of serializing the obejct , and implementing the readExternal() and writeExternal() method. In these two methods, you will specify the properties. and serialization code urself.
Externizable interface is used in the cases where ur requirements are much more than simple serialization. and u need to add more information than the normal one.
I hope this helps.
Amit<br /> <br />The Less I have, The more I gain..Off the Beaten Path, I Reign.
roses are red, violets are blue. Some poems rhyme and some are a tiny ad:
professionally read, modify and write PDF files from Java