Hello,
I have these classes
class javax.mail.URLName{ //does not implement serializable
protected
String fullUrl; //won't serialize because class is not serializable
}
I need to serialize URLName, in particular the fullUrl field. However, I am subclassing it, and the subclass DOES implement serializable.
class URL extends javax.mail.URLName implements java.io.Serializable{}
My question is: When I serialize URL (sub-class of URLName), will the inherited fullUrl field be serializable also? Are public/default/protected inherited fields automatically serialized even though the super class don't implement Serializable?
Thank you