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 are the three types of design patterns?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?
How many techniques can be employed to create a string object?
explain the difference between jdk and jvm?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
What is the use of private static?
What is variable declaration and definition?
What is queue in java?
What is mvc in java?
Can java run on google chrome?
What is thread pool in java with example?
What is a local, member and a class variable?
What is currentthread()?
Is empty list java?
Is c better than java?