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 difference between excute query ()and execute update ()?
What is the difference between the file and randomaccessfile classes?
How GUI component handle its own events?
Can you call a method in a method?
What is meant by final class?
Which variables are stored in stack?
What is data string?
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 is the difference between an argument and a parameter?
When will you define a method as static?
How to avoid the runtime exception ?
What do you understand by private, protected and public?