does usage of Scanner class in java effect the programs efficiency

i want to know why many of the coders in java doesnt use Scanner class
if it effects the efficiency , then which method is best for reading operation

Use BufferedReader

Scanner is very slow .
Even BufferedReader is not the fastest .
Read the java tutorial of codechef for details. - http://www.codechef.com/wiki/java - It is clearly mentioned over there.
Also follow this link - http://makeprogrammingyourforte.blogspot.in/2012/09/fastest-way-to-read-input-in-java.html
Hope this helps.

2 Likes