I have a program called Main.java, shown as below. After compilation of this program, there will be two .class file: Main.class and Main$1.class. My problem is the two .class files are exactly the same.
Anyone knows what is wrong?
I wan to instrument some codes in the run() method of the new thread, but I cannot find the instructions of codes in the run() method of a new thread.
public class Main{
public static void main(String...args){
Thread t=new Thread(){
@Override
public void run(){
System.out.println("xxxx");
}
};
t.start();
}
}