I found that when using switch case
statement with an Enumeration
as parameter. a new .class
file called ClassName$1.class will be generated.
Can you explain to me the origin of this .class file ?
public class MayJavaApp{
private static NewEnum ok;
public String doSomthing() {
NewEnum value=null;
switch (value) {
default: return "other";
}
}
}
The target directory contains:
- MayJavaApp.class
- MayJavaApp$1.class