title: should Class.getResourceAsStream be closed?
body: <p>I was wondering if this is required since when I use this method, the file is being read from the classpath. Does &quot;not closing&quot; it lead to a memory leak.</p>
  <p>How can I test for such memory leaks?</p>