Personally I always prefer to code an explicit out.close(). With earlier versions of
Tomcat, this solved some mysterious blank pages, so ever since then I have used an explicit close(). I don't think you can depend on close being called automatically in servlets.
I know that the finalize methods for various java.io streams call close, so I suppose that garbage collection would eventually force it.
Bill