GIAC Secure Software Programmer – Java GSSP-Java Question # 5 Topic 1 Discussion

GIAC Secure Software Programmer – Java GSSP-Java Question # 5 Topic 1 Discussion

GSSP-Java Exam Topic 1 Question 5 Discussion:
Question #: 5
Topic #: 1

Which of the following code snippets will read the eighth byte of the file wRead.txt into the variable str?


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();


Get Premium GSSP-Java Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.