ReadLine() Function

Explain readLine function in Core Java.

Questions by shashikant pandit

Editorial / Best Answer


  • Member Since Jul-2010 | Jul 8th, 2010

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

Showing Answers 1 - 6 of 6 Answers

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.

  Was this answer useful?  Yes

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.

  Was this answer useful?  Yes

Give your answer:

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


Related Answered Questions


Related Open Questions