单项选择题
下列代码实现了以对象流方式从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
A.txtB.io.*;
C.__________(
D.close
E.printStackTrace
点击查看答案&解析
