What's better in java,buffered reader or scanner class.??
Answers
Answered by
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!
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
Similar questions
Biology,
7 months ago
India Languages,
7 months ago
Math,
1 year ago
Math,
1 year ago
English,
1 year ago