J
Jimmy
Assuming the following snippet ...
public class SomeClass implements Serializable {
private static ABC abcObject;
private transient DEF defObject;
private GHI ghiObject;
public SomeClass() {
}
public ABC getABCObject() {
return abcObject;
}
public DEF getDEFObject() {
return defObject;
}
public GHI getGHIObject() {
return ghiObject;
}
}
All ABC, DEF and GHI classes do NOT implement Serializable. Will all
fields get serialized properly? Or will just one of them is fine? If
so, which one?
Thanks,
Jimmy
public class SomeClass implements Serializable {
private static ABC abcObject;
private transient DEF defObject;
private GHI ghiObject;
public SomeClass() {
}
public ABC getABCObject() {
return abcObject;
}
public DEF getDEFObject() {
return defObject;
}
public GHI getGHIObject() {
return ghiObject;
}
}
All ABC, DEF and GHI classes do NOT implement Serializable. Will all
fields get serialized properly? Or will just one of them is fine? If
so, which one?
Thanks,
Jimmy