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 is bubble sort in java?
Are registers volatile?
What is static and final keyword in java?
What is a parameter in simple terms?
Which number is denoted by leading 0x or 0x in java?
Why is boolean important?
How is string stored in java?
What are drawbacks of singleton class?
What is e in java?
Why heap memory is called heap?
What is meant by class loader? How many types are there?
What do you mean by a JVM?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
What is exception hierarchy in java?
What are internal and external variables?