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 is bubble sort in java?

847


Are registers volatile?

707


What is static and final keyword in java?

776


What is a parameter in simple terms?

751


Which number is denoted by leading 0x or 0x in java?

824


Why is boolean important?

801


How is string stored in java?

803


What are drawbacks of singleton class?

715


What is e in java?

731


Why heap memory is called heap?

776


What is meant by class loader? How many types are there?

915


What do you mean by a JVM?

819


A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

812


What is exception hierarchy in java?

773


What are internal and external variables?

728