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 |
Can an anonymous class be declared as implementing an interface and extending a class?
How does sublist works in java?
What is a class object?
What will happen if a thrown exception is not handled?
0 Answers ABB, Akamai Technologies, Infogain,
How are Java source code files named?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
How do you square a number?
What is the implementation of destroy method in java. Is it native or java code?
Can we use string in switch case in java?
What is meant by class loader and how many types are there?
What is the difference between jsp and servlet?
Why vector is used in java?