DEVFYI - Developer Resource - FYI

What value does readLine() return when it has reached the end of a file?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

198. What value does readLine() return when it has reached the end of a file?

The readLine() method returns null when it has reached the end of a file.

(Continued on next question...)

Other Interview Questions