BufferedWriter It doesn’t record immediately, because it buffers the data it sets.
Imagine that you work in a mail room in your company. Someone walks with a letter to send to a client. You need 10 minutes to go down to the post office on the street to send it by mail. Are you taking the letter immediately or will you wait for someone else to send you the letter?
: , ( ), , - 100 , 10 , , .
IO : . , .. , , .
, ? . , - . , , 100 .
, . - , . , .
, , bw.flush(), .
IO Oracle Essential Java. ,