Computer Science, asked by Pranjal01, 1 year ago

What's better in java,buffered reader or scanner class.??

Answers

Answered by siddhartharao77
1
Here are the key differences between the both:

1. The buffered reader can be used to read text data.The scanner can be used to read the int, float...etc.

2. Buffered Reader is faster in execution, whereas scanner is a little bit slower.

3.Scanner Has a little buffer compared to Buffered Reader.

4. Buffered Reader is synchronous while the scanner is not.


I personally use scanner class because it is a little bit easier and convenient. 


Hope this helps!

siddhartharao77: If possible brainliest it. Thanks
Pranjal01: Thanks bro,I also use scanner, cuz my teacher never taught me buffered reader
Similar questions