Member variables of an object are marked transient to indicate that
they should not be serialized.
During serialization process the transient variables are not
considered part of the persistent state of an object
xxxxxxxxxx
private String
firstName;
private String
lastName;
//final field 1
public final transient String pass= "password";
//final field 2
public final transient Lock lock = Lock.getLock("demo");