Employee object = new Employee();
Employee object2 = (Employee) Class.forName(NewEmployee).newInstance();
Employee secondObject = new Employee();
Employee object3 = (Employee) secondObject.clone();
Object object4 = Employee.class.getClassLoader().loadClass(NewEmployee).newInstance();
// Create Object5
// create a new file with an ObjectOutputStream
FileOutputStream out = new FileOutputStream("");
ObjectOutputStream oout = new ObjectOutputStream(out);
// write something in the file
oout.writeObject(object3);
oout.flush();
// create an ObjectInputStream for the file we created before
ObjectInputStream ois = new ObjectInputStream(new FileInputStream("crunchify.txt"));
Employee object5 = (Employee) ois.readObject();