Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Introducing JavaFX 8 Programming
this week in the
Java in General
Vallabhaneni Suresh Kumar
Joined: Mar 01, 2004
Sep 13, 2005 05:03:00
The objects can be serialized if we extends Serializable interface. Then what are the purpose of writeObect() and readObject() methods? If we want to handle the serialization ourselves, we need to implement these methods or what?
Joined: Mar 22, 2005
Sep 13, 2005 05:13:00
Basically, yes. But if you want to handle serialization yourself, you should implement Externalizable instead of Serializable (and use readExternal/writeExternal, not readObject/writeObject).
I agree. Here's the link:
subject: Serializable interface
A doubt about Serializable
Serializable Method contains Any method
Is an empty interface (without any methods) is marker?
doubt in serializatiion
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015