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 |
Can a lock be acquired on a class in java programming?
what is difference between class and object?
43 Answers College School Exams Tests, HCL,
When should a function throw an exception?
1 Answers Thomson Reuters, Virtusa,
What is the difference between Stream Reader and Stream Writer?
Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?
What does \ mean in regex?
What is java volatile?
What is null data type?
What are the classes of java?
What are the ways in which a thread can enter the waiting state?
What is type conversion in java?
What is the difference between static binding and dynamic binding?