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 the use of arrays tostring () in java?

0 Answers  


What is mnemonic in assembly language?

0 Answers  


What is a generic data type?

0 Answers  


. Explain Java String Pool.

1 Answers  


How do you do exponents in java?

0 Answers  


What are the types of methods in java?

0 Answers  


Explain the importance of thread scheduler in java?

0 Answers  


What is the difference between static method and instance method in Java?

0 Answers   SwanSoft Technologies,


Is ++ operator thread-safe in java?

0 Answers  


Why java uses the concept of the string literal?

0 Answers  


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

0 Answers  


Why char array is favored over string for the storage of passwords?

0 Answers  


Categories