Difference between Scanner and BufferReader Class in Java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Difference between Scanner and BufferReader Class in Java

More User Convient At a Time By Dynamic inputs

7th Jul 2017, 2:29 PM
Tirth Luhar
Tirth Luhar - avatar
1 Answer
+ 1
Though both are meant for standard input but Scanner is used for parsing tokens from the contents of the stream while BufferedReader just reads the stream and does not do any special parsing. BufferedReader is synchronized and Scanner is not
8th Jul 2017, 7:46 PM
Mehman Ismayilov
Mehman Ismayilov - avatar