Hi Ranchers, Does serialization work with inner classes? Meaning if I have a class say Outer and there is an inner class called Inner can then we use the writeObject and readObject methods on the outer class to serialize it? Or should we be implementing the serializable interface in the inner class as well? I can post the sample code if anyone needs to have a peek at it
I think (though not sure) that inner classes implicitly extends everything from outer class and acts like just another member of outer class. So if outer class implements Serialization, inner classes will also have the facility to get serialized.