單項選擇題要從文件" file.dat"文件中讀出第10個字節(jié)到變量C中,下列哪個方法適合? ()

A. FileInputStream in=new FileInputStream("file.dat"); in.skip(9); int c=in.read();
B. FileInputStream in=new FileInputStream("file.dat"); in.skip(10); int c=in.read();
C. FileInputStream in=new FileInputStream("file.dat"); int c=in.read();
D. RandomAccessFile in=new RandomAccessFile("file.dat"); in.skip(9); int c=in.readByte();


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題

運行下列程序, 會產(chǎn)生什么結(jié)果()

A. 第一行會產(chǎn)生編譯錯誤
B. 第六行會產(chǎn)生編譯錯誤
C. 第六行會產(chǎn)生運行錯誤
D. 程序會運行和啟動

2.單項選擇題

指出下列程序運行的結(jié)果()

A.good and abc
B.good and gbc
C.test ok and abc
D.test ok and gbc

3.單項選擇題指出正確的表達式()

A. byte=128;
B. Boolean=null;
C. long l=0xfffL;
D. double=0.9239d;

4.單項選擇題paint()方法使用哪種類型的參數(shù)?()

A. Graphics
B. Graphics2D
C. String
D. Color

5.單項選擇題欲構(gòu)造ArrayList類的一個實例,此類繼承了List接口,下列哪個方法是正確的?()

A. ArrayList myList=new Object();
B. List myList=new ArrayList();
C. ArrayList myList=new List();
D. List myList=new List();