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 we override the main method?
Can we return null in java?
How do you write a good declaration?
What happens when heap memory is full?
List some important features of java 10 release?
What is difference between overloading and overriding in java?
How to overcome the exception object reference not set to an instance of object?
What is member in java?
What is meant by constructor?
How objects are stored in java?
What is the use of beaninfo?
What is java in layman terms?