Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Which java collection does not allow null?

1091


Difference between error and exception

5901


How to create a fecelet view?

945


What do you mean by constant time complexity?

1135


Can you access the private method from outside the class?

906


What are the types of methods in java?

1035


What is the major difference between linkedlist and arraylist?

963


What is the difference between ArrayList and Vector? which one is better in Java

1078


What is the use of beaninfo?

980


What are the restriction imposed on a static method or a static block of code?

996


Why java is considered dynamic?

1109


Where are the local variables stored?

1015


Implement two stacks using a single array.

1000


How would you use Bubble Sort to sort the number of elements?

950


When can you say a graph to be a tree?

1027