✏️ Explanatory Question

Explain the concept of buffering in Java file operations and state its primary advantage.

👁 1 Views
📘 Detailed Answer
🟢 Easy
1
Total Views
10
Related Qs
0%
Progress
💡

Answer with Explanation

Buffering uses a temporary storage area called a buffer to hold data that is being transferred between a program and a stream. Instead of processing data in very small amounts, data is collected in the buffer until a large chunk is available, which is then transferred all at once. The primary advantage is efficiency, as it reduces the overhead of accessing the device by performing fewer, larger data transfers.