It is not specified by the API, but in JDK 1.5.0_06, the buffer is defaulted to 8k:
Originally posted by kedar parundekar:
Q2>If I want to read 1mb file ,then how much bufsize I should required ?
The default buffer is a good compromise between memory use and IO throughput. If you want to experiment with the buffer size, have a look at the IO chapter of the Java Platform Performance book. It explains what the alternatives are and how to benchmark the differences in performance.