Serialization allows you to convert an object into a byte stream for storage or transmission, and vice versa.
Source Code
import java.io.*;
class Employee implements Serializable {
public String name;
public String address;
public transient int SSN;
public int number;
public void mailCheck() {
System.out.println("Mailing a check to " + name + " " + address);
}
}