title: what class loader is used?
body: <p>I have several questions regarding to class loaders.</p>
  
  <pre><code>Class.forName("class.name");
  </code></pre>
  
  <p>and</p>
  
  <pre><code>....
  NotYetLoadedClass cls = new NotYetLoadedClass();
  .....
  </code></pre>
  
  <p>What class loaders will be used in each case? For the first case I assume class loader that was used to load class in which method code is executing. And in the second case I assume thread context class loader.</p>
  
  <p>In case I am wrong, a small explanation is appreciated.</p>