So i'm studying for my upcoming java exam, and on the study guide one of the short answer questions pertains to when to use a Buffer and when not to. I did a pretty comprehensive search on the topic and nothing concrete came up, so I figured I would ask for my own benefit as well as others who may have a similar question.
From what i've gathered, using a buffer is generally preferred as it is less resource expensive than reading from a disk byte-for-byte(which is how files are read from disk without a buffer). Now, my question is, when is it NOT preferred to use a buffer when handling files in java? My best guess would be if the file is extremely small, making the need for a buffer somewhat redundant, but i'm not entirely sure on this.
Also, a quick rundown on what buffering actually is would be awesome(another short answer question). I've read that it is just a space in memory where the data being read/written is stored in large chunks, as apposed to directly on the disk. Is this a correct description? Perhaps too ambiguous? Clarification here would be awesome as well. Thanks :)