Sunday, 11 June 2017

Java Tutorial : Java IO (Java Serializable Interface) ~ foundjava


Click here to watch in Youtube :

Click the below Image to Enlarge
Java Tutorial : Java IO (Java Serializable Interface) 
Employee.java
import java.io.Serializable;

public class Employee implements Serializable
{
    private static final long serialVersionUID = 3558283530338723147L;
    private int id;
    private String name;

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

}
Refer: 
https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html
Click the below link to download the code:

CLICK HERE

No comments:

Post a Comment