S
S
Stanislav2016-10-17 23:30:37
Java
Stanislav, 2016-10-17 23:30:37

What happens if the read/write stream is not closed?

Hello. The question, I'm sure, is simple, but nevertheless it puzzled me.
What happens if we don't close the read or write stream to a file or database? Well, records, for example, the .flush method (using Java as an example) may not be called (although we can call it, instead of the close method) for the writing classes and new data will not be entered into the file, but what could be fraught with a similar situation for the reader class?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hatiko, 2016-10-18
@stanislav_studzinskiy

File lock.
Increase in memory consumption.
Etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question