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

How does a try statement determine which catch clause should be used to handle an exception?

2 Answers  


What are the application of stack?

0 Answers  


what is the difference between statis block and static variable

7 Answers  


Why is a constant variable important?

0 Answers  


'A class is a template for an object' explain this statement.

0 Answers   Akamai Technologies,






Is space a string in java?

0 Answers  


What is meant by memory leak?

0 Answers  


What is a Wrapper class?

14 Answers  


What is the difference between the boolean & operator and the && operator in java programming?

0 Answers  


Objects or references which of them gets garbage collected?

0 Answers  


What is substring of a string?

1 Answers  


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

0 Answers  


Categories