ObjectInputStream and ObjectOutputStream,该怎么处理

ObjectInputStream and ObjectOutputStream
我通过ObjectOutputStream 写入对象到文件,对象已是实现Serializable接口
接下来,在这个程序运行时,我可以通过ObjectInputStream 读到对象,可以如果
我关闭程序,再重新开启程序,就读不到对象,保EOFException ,可是文件中明明已经
存在对象了,不知道是哪个细节没有注意到,各位帮帮忙,谢谢
------解决思路----------------------
给个示例你参考下,按照你的操作,没问题!
import java.io.*;
public class Test {

/**
 * @param args
 * @throws IOException 
 * @throws FileNotFoundException 
 * @throws ClassNotFoundException 
 */
public static void main(String[] args) throws FileNotFoundException, IOException, ClassNotFoundException {
// TODO Auto-generated method stub
Man man=new Man("Kobe",28);
ObjectOutputStream out=new ObjectOutputStream(new FileOutputStream(new File("D:/Man.txt")) );
out.writeObject(man);
out.close();
ObjectInputStream in=new ObjectInputStream(new FileInputStream(new File("D:/Man.txt")) );
man=(Man)in.readObject();
in.close();
System.out.println(man);
}

}

class Man implements Serializable
{
public Man(String name,int age)
{
this.name=name;
this.age=age;
}
private int age;
private String name="";

@Override
public String toString() {
return "Man [age=" + age + ", name=" + name + "]";
}
}