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 %d in printf?
What is native method in java?
When do we need to use internal iteration? When do we need to use external iteration?
What is qms certification?
What is structure of java heap? What is perm gen space in heap?
What are the important methods of java exception class?
write a program to create an arraylist and listeterator.and value should be enter through keyboard.
How is Garbage collection done in Java?
What are triggers in DB? Explain their types. How do they work?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
What is annotation in java?
which class is the wait() method defined in? : Java thread