+ 1

What is the difference between scanner and buffer reader in java?

scanner and buffer reader

8th Oct 2017, 2:37 AM
Ramanan S
Ramanan S - avatar
2 Antworten
+ 2
Scanner lets you read directly into various different data types, where BufferedReader can only read characters or strings. BufferedReader is meant to limit the cost of I/O by buffering large chunks of data and handing it out as needed.
8th Oct 2017, 2:49 AM
John Wells
John Wells - avatar
+ 2
thanks Mr.john Wells
8th Oct 2017, 4:20 AM
Ramanan S
Ramanan S - avatar