Scenario 1 :
I read that if we want to save some part of an object manually then we can override two methods i.e. writeObject(ObjectOutputStream) and readObject(ObjectInputStream)..and explicitly add the field manuaaly to ObjectOutputStream and default serialization process can go ob by invoking defaultWriteObject?()..
Scenario 2 :
somewhere I read abt Externalizable interface which has two method writeExternal() and readexternal() and can be used to control the serialization process..
Now, I m confused between the above two scenarios...Is both the scenarios same?
will be thankful for any help.....
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad: