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 |
Explain a situation where finally block will not be executed?
Explain heap sort?
How to Sort list of Strings in ascending order without using java api.
How many types of syncronization?
Difference between this() and super() ?
What is reverse function?
Tell us something about an iterator.
difference between vectorlist and hash
What is byte code and why is it important to java’s use for internet programming?
why would you use a synchronized block vs. Synchronized method? : Java thread
What is java instanceof operator?
Discuss 2D arrays.