/**
 * @file SerializeDemo.java
 * @author Valery Samovich
 * @version 1.0.0
 * @date 08/27/2014
 */

package com.valerysamovich.java.advance.serialization.serialize;

public class SerializeDemo {

    public static void main(String[] args) {
        
        Employee e  = new Employee

    }

}

@@ -165,126 +165,818 @@
 e;%0A%0A
-public class SerializeDemo %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        %0A        Employee e  = new Employee
+import java.io.FileOutputStream;%0Aimport java.io.IOException;%0Aimport java.io.ObjectOutputStream;%0A%0Apublic class SerializeDemo %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        %0A        // Create the instance of the Employee object%0A        Employee e  = new Employee();%0A        e.name =%22John Doe%22;%0A        e.address = %22Florida, USA%22;%0A        e.SSN = 1112223333;%0A        e.number = 101;%0A        %0A        try %7B%0A           FileOutputStream fileOut =%0A           new FileOutputStream(%22/tmp/employee.ser%22);%0A           ObjectOutputStream out = new ObjectOutputStream(fileOut);%0A           out.writeObject(e);%0A           out.close();%0A           fileOut.close();%0A           System.out.printf(%22Serialized data is saved in /tmp/employee.ser%22);%0A        %7D catch(IOException i) %7B%0A            i.printStackTrace();%0A        %7D
 %0A%0A  

Add Serialize example