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
Differentiate between postfix and prefix operators in java.
Differences between traditional programming language and object oriented programming language?
What is string data type?
What is the purpose of java?
What is yield () in java?
placement papaers of spring computing technology
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
What is static and final keyword in java?
What do you mean by light weight and heavy weight components?
What is the difference between preparedstatement and statement in java?
What is get () in java?
What is subsequence of a string?
How can we find the actual size of an object on the heap?
What is hashing in java?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?