GeekInterview.com
Series: Subject: Topic:
Question: 61 of 573

readLine() Function

Explain readLine function in Core Java.
Asked by: shashikant pandit | Member Since Jun-2010 | Asked on: Jul 1st, 2010

View all questions by shashikant pandit

Editorial / Best Answer

Answered by: omkar.raj

View all answers by omkar.raj

Member Since Jul-2010 | Answered On : Jul 8th, 2010

ReadLine() function is used to take the input from user in string format.

Showing Answers 1 - 6 of 6 Answers
omkar.raj

Answered On : Jul 8th, 2010

View all answers by omkar.raj

ReadLine() function is used to take the input from user in string format.

Yes  5 Users have rated as useful.
  
Login to rate this answer.

The readLine method of class Datainputstream allows us to read a string data from keyboard.

Yes  1 User has rated as useful.
  
Login to rate this answer.

When you are using BufferedReader & accepting the value or any line from the keyboard then all are store in a buffer memory where the buffer read that line using the ReadLine() method. if you are not using the BufferedReader then only using system.ReaLine() method then this ReadLine() method will read the character one by one using ReadLine() method.

  
Login to rate this answer.

ReadLine() method is use to read the data line by line.

  
Login to rate this answer.

It will read the data from the keyboard but line by line not character by character.

  
Login to rate this answer.
muralidhar.9e

Answered On : Sep 7th, 2010

View all answers by muralidhar.9e

Actually the readLine() method will reads the data through the bufferdReader object. It reads only one line of data through keyboard. We can't enter the multiple lines of data at runtime.

This is the main functionality of the readLine() method.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.