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
Which java collection does not allow null?
Difference between error and exception
How to create a fecelet view?
What do you mean by constant time complexity?
Can you access the private method from outside the class?
What are the types of methods in java?
What is the major difference between linkedlist and arraylist?
What is the difference between ArrayList and Vector? which one is better in Java
What is the use of beaninfo?
What are the restriction imposed on a static method or a static block of code?
Why java is considered dynamic?
Where are the local variables stored?
Implement two stacks using a single array.
How would you use Bubble Sort to sort the number of elements?
When can you say a graph to be a tree?