Click here to watch in Youtube :
Click the below Image to Enlarge
Java Tutorial : Java IO (Java Serializable Interface) |
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
No comments:
Post a Comment