title: Will using class.forname multiple times cause memory leak? (running inside tomcat)
body: <p>1) If I use the following Class.forName() is called multiple times, will it cause memory leaks? </p>
  
  <pre><code>Class.forName("MyClass") 
  </code></pre>
  
  <p>2) Or, is tomcat's WebAppClassLoader going to check whether <code>"MyClass"</code> is already loaded and use the cached instance instead.</p>
  
  <p>3) If the answer to question (2) is 'no' then, will the previously loaded class gets garbage collected, if I have switched on PermGen sweeping on and set relevant jvm parameters.</p>
  
  <p>If I want to avoid reloading of class, what is the best way to use class instance cache. Can I store class instance as HashMap</p>