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)- A3% (1)
- B76% (26)
- C9% (3)
- D12% (4)
Community Discussion
No community discussion yet for this question.