private void writeObject(ObjectOutputStream o)
throws IOException {
o.writeObject(propertyTwo);
o.defaultWriteObject();
}
private void readObject(ObjectInputStream o)
throws IOException, ClassNotFoundException {
propertyTwo = (String) o.readObject();
o.defaultReadObject();
}
Please explain how it serialize transient variable if we use defaultWriteObject and writeObject together?