Can anyone explain how to use system.in.read() for input in java

I have seen many fast answers which use System.in.read().My questions are
1)is it the fastest method for I/O in java
2)can it be used for every problem
And can anyone explain how to use it

//