Question - Can a nested object be used in Serialization ?
Answer -
Yes. If a class that is to be serialized contains references to objects of other classes, and if those classes have been marked as serializable, then their objects are serialized too.