undefined

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Java Object Serialization

Java's serialization framework provides a convenient mechanism to serialize arbitrary objects into a binary sequence:

import java.io.Serializable;
public class PatientInfo implements Serializable {
private static final long serialVersionUID = 42;
private final String name;
private final int age;
public PatientInfo(final String name, final int age) {
this.name = name;
this.age = age;
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content