Which class would you use for reading binary data from a file?

  • BinaryReader
  • BufferedReader
  • FileInputStream
  • FileReader
To read binary data from a file in Java, you should use the FileInputStream class. It's designed for reading raw binary data and doesn't interpret the data as characters. Other options, like FileReader and BufferedReader, are meant for reading text data and may not handle binary data correctly.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *