Copyright © 2001 Qusay H. Mahmoud
Deserialization
lExample: here is how you would read and reconstruct the objects you have saved:
l
lFileInputStream fis = new FileInputStream(“file.out”);
lObjectInputStream ois = new ObjectInputStream(fis);
lString s = (String) ois.readObject();
l
lNote: the program that serializes objects should be kept in sync with the program that deserializes them