欢迎来到牛牛题库网 牛牛题库官网
logo

单项选择题

下列代码实现了以对象流方式从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.txt
B.io.*;
C.__________(
D.close
E.printStackTrace
点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题