title: Which is faster ? nested class or not nested class
body: <p>this article <a href="http://apmblog.dynatrace.com/2011/12/15/the-top-java-memory-problems-part-2/" rel="nofollow">The Top Java Memory Problems – Part 2
  </a> said that too many class can cause memory leak, so I think its better to create inner class because we can access the private field of the parent instead of passing the field as argument when I instantiate the class.</p>
  
  <p>In terms of memory usage which is better to make nested class or create new java file object (not nested class) ?? </p>