transient is used to indicate that a variable should not be persisted when object is serialized. Serialization converts the object state to serial bytes which are used for network communication.
Java Code:
public class MyClass 
{
  private String studentName;
  private transient String tempName;
  private transient int tempAge;
…
}