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



what value will be return by the read() method once it reaches the end-of-file? a. Throws EOExcep..

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

Post New Answer

More Core Java Interview Questions

what is mean by method signature?

8 Answers   Satyam,


What are the common uses of "this" keyword in java ?

0 Answers  


Is it possible to write a regular expression to check if string is a number?

0 Answers  


Why is flag used in java?

0 Answers  


Explain about the performance aspects of core java?

0 Answers  






Is the milky way in a void?

0 Answers  


Why parsing is done?

0 Answers  


What is the difference in between cpp and java? Can u explain in detail?

0 Answers  


What are predefined functions?

0 Answers  


How many types of thread in java? give the name

13 Answers   Cisco, NIIT,


What is the purpose of the File class?

3 Answers  


what is diff bet iterator and enumeration?

4 Answers  


Categories