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 |
What is the use of arrays tostring () in java?
What is mnemonic in assembly language?
What is a generic data type?
. Explain Java String Pool.
How do you do exponents in java?
What are the types of methods in java?
Explain the importance of thread scheduler in java?
What is the difference between static method and instance method in Java?
0 Answers SwanSoft Technologies,
Is ++ operator thread-safe in java?
Why java uses the concept of the string literal?
Is it possible to write a regular expression to check if string is a number?
Why char array is favored over string for the storage of passwords?