GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 33 of 923    Print  
What value does readLine() return when it has reached the end of a file
The readLine() method returns null when it has reached the end of a file.


  
Total Answers and Comments: 3 Last Update: August 27, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 10, 2005 05:24:16   #1  
srinivasa reddy        

RE: What value does readLine() return when it has reached the end of a file
It does not return null value. it return -1when it reaches the end of file
 
Is this answer useful? Yes | No
May 19, 2006 08:51:47   #2  
Trimoorthy        

RE: What value does readLine() return when it has reac...
No, readLine() method on a bufered reader gives null on reaching end of file. It does not give -1.
 
Is this answer useful? Yes | No
August 27, 2007 04:07:53   #3  
pa1kishore Member Since: August 2007   Contribution: 1    

RE: What value does readLine() return when it has reac...
readLine() method of BufferReader class returns String and when it reaches the end of file file it returns null.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape