I want to kow whether the attribute foo
will also be serialized in the following example or not (written out of my mind):
public class Example implements Serializable {
private String a = "a";
private Foo foo = new Foo("a");
}
NOTE: Class Foo only holds an attribute a
and does not implement Serializable
If Foo
is not Serializable, I have the other problem, that Foo cannot implement Serializable
, because it is provided by an Api Call from an external .jar
-file.
Also in my concrete case Foo holds also an class Bar
which is also not Serializable
.