File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
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).
Ping & DNS, my free Android app for network diagnostics
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