KnowledgeBoat Logo

Computer Applications

Read the following text and choose the correct answer:

Byte streams are used to perform input and output of 8-bytes. They are used to read bytes from the input stream and write bytes to the output stream. Mostly, they are used to read or write raw binary data.

Which of these class is used to read and write bytes in a file?

  1. FileReader
  2. FileWriter
  3. FileInputStream
  4. InputStreamReader

Input in Java

1 Like

Answer

FileInputStream

Reason — FileInputStream class is used to read and write bytes in a file.

Answered By

1 Like


Related Questions