When i define a java object to implement serializable interface, do the members of the object, also become serializable?
Or i have to go as far along the nesting depth, to redefine every object along the path as serializable?
When i define a java object to implement serializable interface, do the members of
Share
Most classes that you use regularly in java are serializable (Collections, String, decedents of Number, etc.), however any classes that you reference either have to be serializable or declared transient. Of course, if they are transient, they won’t be referenced when the class is deserialized.