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 Posted / 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 |
Post New Answer View All Answers
What invokes a thread's run() method in java programming?
What are static initalizers in java ?
What is a native method in java programming?
how to deploy tomcatserver to weblogic server? write d following steps?
What are the basic control structures?
Why string is a class?
Is it necessary for the port addresses to be unique? Explain with reason.
Can a class have a static inner class?
What is boolean strategy?
What is io stream in java?
What is a local block?
What is the use of using enum to declare a constant?
What is the default size of set in java?
Which number is denoted by leading zero in java?
If a method is declared as protected, where may the method be accessed?