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


Please Help Members By Posting Answers For Below Questions

What invokes a thread's run() method in java programming?

829


What are static initalizers in java ?

794


What is a native method in java programming?

771


how to deploy tomcatserver to weblogic server? write d following steps?

1704


What are the basic control structures?

739


Why string is a class?

746


Is it necessary for the port addresses to be unique? Explain with reason.

803


Can a class have a static inner class?

834


What is boolean strategy?

889


What is io stream in java?

752


What is a local block?

906


What is the use of using enum to declare a constant?

796


What is the default size of set in java?

723


Which number is denoted by leading zero in java?

1035


If a method is declared as protected, where may the method be accessed?

758