The class file for a new Thread and the class file for main are the same : <p>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. </p>

<p>Anyone knows what is wrong? </p>

<p>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. </p>

<pre><code>public class Main{
    public static void main(String...args){
         Thread t=new Thread(){
         @Override
             public void run(){
             System.out.println("xxxx");
             }
         };
    t.start();
    }
}
</code></pre>
