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 exception hierarchy in java?
Explain listiterator and methods in listiterator?
What is public static?
What is the difference between heap memory and stack memory?
What is binary tree in java?
Explain the selection sort algorithm and state its time complexity?
What is a finally block?
Is array serializable java?
What is the use of set in java?
Is null an object java?
What is the difference between a switch statement and an if statement?
Which data type is a class in java?
What is difference between == and === in js?
How does map works in java?
How does linkedhashmap work in java?