what value will be return by the read() method once it
reaches the end-of-file?
a. Throws EOException
b. Return null
c. Return -1
d. Read method return nothing, because it is void method
Answer Posted / ash
Generally the read method reads integer and returns integer...so i think it will return -1.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is a prefix function.write down a code to compute prefix function.
What is difference between local variable and global variable?
What is empty string literal in java?
State differences between C and Java?
What are the four integer types supported by java?
Variable of the boolean type is automatically initialized as?
What is a string token?
How java is similar to c?
Which class represents the socket that both the client and server use to communicate with each other?
What is starvation?
What is integer valueof?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
If a method is declared as protected, where may the method be accessed in java programming?
What are the approaches that you will follow for making a program very efficient?
Can you explain inner class.