What is the difference between the Scanner class and the BufferedReader class? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between the Scanner class and the BufferedReader class?

28th May 2017, 8:47 AM
Danilo
Danilo - avatar
2 Answers
+ 1
scanner is used to read user inputs whereas bufferedreader is used to read contents of a file, I think this could solve ur question
28th May 2017, 10:02 AM
Maddula Venkata Krishna Sai Ram
Maddula Venkata Krishna Sai Ram - avatar