从对象流中读取对象,请在画线处加入代码完成此程序 【10】 。
import java.util.*;
import java.io.*;
public class UnSerializeDate
Date d = null;
UnSerializeDate()
try
FileInputStream f = new FileInputStream("data.ser");
______;
d = (Date) s.readObject();
f.close();
catch(Exception e)
e.printStackTrace();
public static void main(String args[ ])
UnSerializeDate a = new UnSerializeDate();
System.out.println("The date read is :"+a.d.toString());