Computer Applications

Differentiate between Scanner object and BufferedReader object

Input in Java

13 Likes

Answer

Scanner objectBufferedReader object
Scanner class parses the tokens into specific types like short, int, float, boolean, etc.BufferedReader just reads the stream and does not do any special parsing.
It is slower than BufferedReader.It is faster than Scanner.
It was introduced in JDK1.5It was introduced in JDK1.1

Answered By

11 Likes


Related Questions