Which of these values is returned by read() method is end of file (EOF) is encountered?
(a) 0
(b) 1
(c) -1
(d) Null
This question was addressed to me by my college director while I was bunking the class.
Question is taken from Reading & Writing Files in portion I/O & Applets of Java
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)