lThere are two ways to serialize an object without
exposing any sensitive data to the world:
l
–Mark
any sensitive data fields as transient
– e.g.: private transient String
passwd;
–Implement
the Externalizable
interface
lNote:
fields that are marked static are not saved as
well.