title: What does dollar followed by an index mean in a class name?
body: <p>I'm profiling a java application, and the largest number of the allocated objects have name 
  <code>com.x.y.ClassName$5</code>.</p>
  
  <p>Both the netbeans profiler and the yourkit use the same naming convention.
  I'm at loss how to google the naming problem.</p>
  
  <p>What is <code>$5</code> after class name?</p>
  
  <p>EDIT:
  It seems the $5 is fifth anonymous class declared. I've used <a href="http://docs.oracle.com/javase/1.5.0/docs/tooldocs/windows/javap.html" rel="nofollow noreferrer">javap</a> on generated class to find which is the fifth anonymous class. Reference found in <a href="https://stackoverflow.com/questions/3998861/how-to-match-compiled-class-name-to-an-enum-member-in-java">How to match compiled class name to an enum member in Java?</a></p>