McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2026
→
Bachelor of Computer Applications (BCA)
→
Java Programming
→
Which of these values is returned by rea...
Q.
Which of these values is returned by read () method is end of file (EOF) is encountered?
A.
0
B.
1
C.
-1
D.
Null
Answer» C. -1
1.6k
0
Do you find this helpful?
4
View all MCQs in
Java Programming
Discussion
No comments yet
Login to comment
Related MCQs
Which of these class is used to read and write bytes in a file?
Which of these class is used to read from a file?
You execute the code below in an empty directory. What is the result? File f1 = new File ("dirname");F ile f2 = new File (f1, "filename");
A message string is returned by which method of an Exception object?
The _______ class is used to read characters from the file:
Which of these is used to read a string from the input stream?
Which of these classes is used to read characters and strings in Java from console?
Which of these exception is thrown by close () and read () methods?
Which of these is used to read a string from the input stream?
Which of these class is used to read from byte array?.