What is a duck number in java provide with example | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is a duck number in java provide with example

15th Mar 2017, 10:16 AM
Nagaraju Kunchala
Nagaraju Kunchala - avatar
3 Answers
+ 13
- Scanner parses the content of a stream while BufferedReader just reads the stream. - Scanner is not synchronised while BufferedReader is. - Scanner has a smaller, but for the most usages sufficient buffer. - BufferedReader throws IOExceptions, Scanner hides them.
15th Mar 2017, 12:02 PM
Tashi N
Tashi N - avatar
0
ok but upto now i used scanner object but what is the difference among scanner and BufferedReader
15th Mar 2017, 11:55 AM
Nagaraju Kunchala
Nagaraju Kunchala - avatar