Hi all,
I have a question regarding static & transient members:
Considering that
"transient variables and static class members are ignored during the serialization and deserialization process" (page 427):
1) Why does my code output the static char type ('C' in this case)?
2) When I read my transient
String, it still outputs null, why?
"it is important to check for null values when reading from a serialized data stream. We rely on the instanceof operator to always return false for null values". (page 431)