A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Serialization : Help Needed
Joined: Feb 27, 2006
Oct 23, 2006 06:56:00
using writeobject and readobject :
if we define these methods then also we won't be able to serialize the HAS-A relationship object. In other words, the Collar Object. Right ?
Joined: Mar 22, 2004
Oct 23, 2006 07:02:00
Assuming your Collar doesnt implements serializable,you are right.
You are recreating the Collar object in readObject() and passing it on.
SCJP1.5(86%)<br />SCWCD1.4(95%)<br />SCBCD1.3(92%)<br />IBM 252
subject: Serialization : Help Needed
Inner class Vs Outer Class
Sending wsdl DateTime from java client
down-casting a class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014