From: Alessio S. <ale...@gm...> - 2009-02-26 19:48:49
|
On Thu, Feb 26, 2009 at 8:34 PM, Ville Voutilainen <vil...@gm...> wrote: > On Thu, Feb 26, 2009 at 9:32 PM, Ville Voutilainen > <vil...@gm...> wrote: >> I only wonder if the capability of being serializable is inherited, >> because I would >> think it might not be. Once again, I may be wrong. > > I promise, one of these days I'll learn to read. > > "All subtypes of a serializable class are themselves serializable.", in > http://java.sun.com/javase/6/docs/api/java/io/Serializable.html > :) yes, and you even have the possibility to break this inheritance if you want to, by implementing read/writeObject methods that throw NotSerializableException (http://java.sun.com/javase/6/docs/api/java/io/ObjectOutputStream.html) |