Which class is commonly used for reading characters from a file in Java?

  • FileInputReader
  • FileOutputReader
  • FileReader
  • FileWriter
In Java, the commonly used class for reading characters from a file is FileReader. It is part of the java.io package and is specifically designed for character input. Other options like FileWriter, FileInputReader, and FileOutputReader are not standard classes in Java for file reading.
Add your answer
Loading...

Leave a comment

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