java how to serialize data code example
Example 1: import java.io.serializable
import java.io.Serializable;
Example 2: serializable in JAVA
public class Employee implements java.io.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);
}
}