Transient Variables : transient « Modifiers « SCJP






The transient modifier applies only to instance variables.

If you mark an instance variable as transient, you're telling the JVM to skip this variable 
when you attempt to serialize the object. 

A transient variable is not stored as part of its object's persistent state. 

public class MainClass{
    transient int i = 0;
    public static void main(String[] argv){
       System.out.println();
    }
}








3.12.transient
3.12.1.Transient Variables