The method read() of FileReader class returns ________ when the end of the file is reached.
- True
- -1
- 0
- FALSE
The read() method of the FileReader class returns -1 when the end of the file is reached. This indicates that there are no more characters to read from the file.
Loading...
Related Quiz
- If a class has multiple constructors, it can be said to have constructor ________.
- Considering a real-world scenario where a thread pool is being used to manage multiple client requests to a server, what could be the potential issues if the thread pool size is too small or too large? How would you determine an optimal thread pool size?
- Which of the following statements correctly initializes a two-dimensional array in Java?
- In a scenario where you need to manage a large number of database connections, how would you optimize and manage database connectivity to ensure minimal resource usage and maximum performance?
- Which operator can be used to invert the sign of a numeric expression?