menu-iconExamlexExamLexServices

Discover

Ask a Question
  1. All Topics
  2. Topic
    Computing
  3. Study Set
    Big Java Binder Early Objects
  4. Exam
    Exam 20: Streams and Binary Inputoutput
  5. Question
    What Is Returned by the Read Method When a FileInputStream
Solved

What Is Returned by the Read Method When a FileInputStream

Question 34

Question 34

Multiple Choice

What is returned by the read method when a FileInputStream has reached the end of the file?


A) -1
B) -2
C) '\n'
D) 0

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Q29: If we read a byte and the

Q30: In Java, you use a(n) _ object

Q31: Assume we have a RandomAccessFile object, file,

Q32: The values of the byte type range

Q33: Every object is assigned a serial number

Q35: Which code moves the file pointer to

Q36: What type is returned from a call

Q37: Caesar cipher uses a shift of each

Q38: Streams access sequences of _.<br>A) characters<br>B) files<br>C)

Q39: In Java, the simplest mechanism for reading

Examlex

ExamLex

About UsContact UsPerks CenterHomeschoolingTest Prep

Work With Us

Campus RepresentativeInfluencers

Links

FaqPricingChrome Extension

Download The App

Get App StoreGet Google Play

Policies

Privacy PolicyTerms of ServiceHonor CodeCommunity Guidelines

Scan To Download

qr-code

Copyright © (2025) ExamLex LLC.

Privacy PolicyTerms Of ServiceHonor CodeCommunity Guidelines