This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
when a class implements the interface we will override those methods in the class;But in the case of serializable interface we wont implement(readObject and writeObejct) methods in the particulr class.why? [ November 08, 2004: Message edited by: kesava chaitanya ]
Many serializable objects can use the default versions of readObject() and writeObject() contained in ObjectInputStream and ObjectOutputStream respectively. Only if the default versions can't handle a class does that class have to supply specialized versions of readObject() and writeObject()
Putting these methods in the Serializable interface would not allow any serializable classes to use the default methods.
SCJP 1.4, SCWCD in process
subject: why serializable interface called as marker interface