A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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).
Ping & DNS
- my free Android networking tools app
I agree. Here's the link:
subject: Serializable interface
doubt in serializatiion
A doubt about Serializable
Is an empty interface (without any methods) is marker?
Serializable Method contains Any method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014