transient Java Keyword

The transient keyword may be applied to member variables of a class to indicate that the member variable should not be serialized when the containing class instance is serialized.

Examples

  public class MyClass
  {
     private transient String password;
  }
  

Remarks

Related Topics

None.