Which of the following classes are byte stream classes in Java?

  • FileInputStream and FileOutputStream
  • FileInputStream and Reader
  • FileReader and FileOutputStream
  • FileReader and Writer
Byte stream classes in Java are used for handling binary data. The correct options are FileInputStream and FileOutputStream, as they are used to read and write binary data to files. FileReader and Reader are character stream classes used for reading text data, not binary data.
Add your answer
Loading...

Leave a comment

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