(读写文件)下列代码实现了以对象流方式从score.txt 文件读出数据的功能。下划线处应填入的代码是_
已帮助 人
(读写文件)下列代码实现了以对象流方式从score.txt 文件读出数据的功能。下划线处应填入的代码是________。import java.io.*; public class testIn { public static void main(String[ ] args) { try { ObjectInputStream in =new ObjectInputStream(new FileInputStream("score . txt")); int[ ] pdata= new int[ 3 ]; pdata = (int[ ]) in.__________(); in.close (); }catch (Exception e ){ e.printStackTrace (); } } } }
A.readObject
B.read
C.in
D.inObject

回答
共1条回复-
A
