| Author |
Serialization via Inheritance
|
cool rishi
Greenhorn
Joined: Sep 07, 2009
Posts: 2
|
|
When a super class implements serializable interface, subclass does not implement serializable interface, Now in this case Can the subclass be serialized?
|
 |
Anuj Prashar
Ranch Hand
Joined: Apr 15, 2008
Posts: 99
|
|
|
Yes if a superclass is Serializable, then all subclasses of that class automatically implement Serializable implicitly. A subclass of a class marked Serializable passes the is-a test for Serializable.
|
SCJP 5,SCWCD 5, RHCT
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
"cool rishi",
Did you check Campbell's PM ? See this thread. Thank you.
|
[My Blog]
All roads lead to JavaRanch
|
 |
 |
|
|
subject: Serialization via Inheritance
|
|
|