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

Describe what happens when an object is created in java ?

543


What is lastindexof in java?

544


What is bitwise complement?

498


Why is java logo a cup of coffee?

620


How to display all the prime numbers between 1 and 100

501






Can arraylist hold different types java?

482


What is the difference between a constructor and a method?

564


Does anyone still use java?

582


How do you sort a string in java?

535


Explain about the interpreter in java?

623


List out benefits of object oriented programming language?

481


os is developed in c no java is more secured then c na why dont the os developed is developed using java

3518


How many types of interfaces are there?

575


What is use of map in java?

511


How many types of java are there?

555