Forums Register Login

Serialization via Inheritance

+Pie Number of slices to send: Send
When a super class implements serializable interface, subclass does not implement serializable interface, Now in this case Can the subclass be serialized?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
"cool rishi",
Did you check Campbell's PM ? See this thread. Thank you.
bacon. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1025 times.
Similar Threads
is Serialization Inherited
serialization question
Why both GenericServlet and HttpServlet implements Serializable interface ?
Why does serialization require a serial version UID in the subclasses of the implementing class.
what is the output
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:02:53.