title: why is <filename>$1.class generated?
body: <pre><code>enum Day{ SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY}  
  
  class Enum1 {  
  
    public static void main(String args[]) {  
  
      Day day=Day.MONDAY;  
  
      switch(day) {  
        case SUNDAY:   
          System.out.println("sunday");  
          break;  
        case MONDAY:   
          System.out.println("monday");  
          break;  
        default:  
          System.out.println("other day");
      }
    }
  }
  </code></pre>
  
  <p>I see that <code>Enum1.class</code> ,<code>Day.class</code>, and <code>Enum1$1.class</code> when I compile this code. When I comment out the switchcase part only <code>Enum1.class</code> and <code>Day.class</code> are generated.</p>
  
  <p>What in the switchcase is the cause of generating an extra <code>Enum1$1.class</code> file?</p>