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 / 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 |
What is the basically use of finally while we know it is always executed but why?
What are the various access specifiers in java?
How is rounding performed under integer division?
Is null a string in java?
What Is Composition?
What do you mean by scope of variable?
What is the difference between static class and normal class?
Why are getters and setters used?
What is math exp in java?
Explain the difference between protected and default access.
What is widening and narrowing in java? Discuss with an example.
What does g mean in regex?