Reading an Object Stream
public class UnserializeTest {
FileInputStream f = new FileInputStream(“test.ser”);
ObjectInputStream s = new ObjectInputStream(f);
st = (String) s.readObject();
catch (Exception e) { System.out.println(e.getMessage()); }
System.out.println(“String:” + st);
public static void main(String args[]) { new UnserializeTest(); }