为什么空文件不能构造ObjectInputStream?Java codepublic class Test {public static void main(String[]
为什么空文件不能构造ObjectInputStream?
Java code
public class Test { public static void main(String[] args) throws Exception { File f = new File("D:\\a.txt"); ObjectInputStream ois = new ObjectInputStream(new FileInputStream(f)); }}