Câu 62: GSSP-Java: GIAC Secure Software Programmer-Java
Which of the following code snippets will read the eighth byte of the file wRead.txt into the variable str?
Nội dung câu hỏi
Which of the following code snippets will read the eighth byte of the file wRead.txt into the variable str?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. RandomAccessFile raf=new RandomAccessFile("wRead.txt");raf.seek(8);int str=raf.readByte();
- B. FileInputStream fis=new FileInputStream("wRead.txt");int str=fis.read(8);
- C. FileInputStream fis=new FileInputStream("wRead.txt");fis.skip(8);int str=fis.read();
- D. FileInputStream fis=new FileInputStream("wRead.txt");fis.skip(7);int str=fis.read(); — đáp án hiện tại
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.