I have a class which implements Serializable. There is an other class object in the class which does not implement serializable. What should be done to serialize the member of the class.
My class is something like this
public class Employee implements Serializable{
private String name;
private Address address;
}
public class Address{
private String street;
private String area;
private String city;
}
Here, I dont have access to the Address class to make it implement Serializable. Please help. Thanks in advance