title: Closing Streams in Java
body: <p>Why do we need to close a FileInputStream (and streams in general) <em>in any case</em> before we leave the program? What would happen otherwise? If the program stops before the input stream is closed explicitly in the program, doesn't the stream also close automatically?</p>