title: Java size of an Exception in memory
body: <p>Does anyone know how much memory an <strong>Exception</strong> occupies once it is created and <strong>thrown</strong>?</p>
  
  <p>For example, <code>NullPointerException</code>.</p>
  
  <p>And how exceptions are being garbage collected?</p>