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 difference between hashset and treeset in java?
What are the Memory Allocations available in JavaJava?
What is meant by class?
Does substring create a new object?
What is a prefix function.write down a code to compute prefix function.
What is a arraylist in java?
What is the difference between conversation & casting?
What are batch updates. in jdbc
Give few examples of final classes defined in Java API?
Is string passed by reference in java?
What is %02d?
In Java, what’s the purpose of static methods and static variables?