nerdexam
GIAC

GSSP-JAVA · Question #165

Which of the following is a valid constructor for the DataInputStream class?

The correct answer is B. DataInputStream(FileInputStream fin). See the full explanation below for the reasoning.

Question

Which of the following is a valid constructor for the DataInputStream class?

Options

  • ADataInputStream(File file)
  • BDataInputStream(FileInputStream fin)
  • CDataInputStream(String str)
  • DDataInputStream(FileInputStream fin, int size)

How the community answered

(34 responses)
  • A
    3% (1)
  • B
    76% (26)
  • C
    9% (3)
  • D
    12% (4)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice