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 the difference between the boolean & operator and the && operator in java programming?
What is the static block?
Can we override a variable in java?
Give me some null interfaces in java?
What is the difference between multitasking and multithreading in Java
Why is it called buffering?
What is a void method?
How can we use primitive data types as objects?
What is an exception? difference between Checked and Unchecked exception in Java
What do you mean by constructor?
Can we assign the reference to this variable?
What is the difference in between cpp and java? Can u explain in detail?
Can It is possible to synchronize the constructor of a Java Class?
What are different types of expressions?
What is this keyword used for?