✏️ Explanatory Question
When reading a text file with a BufferedReader, the readLine() method returns null when it reaches the end of the file, which can be checked in a loop condition. When reading a binary file with a DataInputStream, the read methods do not return a special value; instead, an EOFException is thrown when an attempt is made to read past the end of the file, which must be caught to handle the EOF condition.