class Demo{
public static void main(
String args[]){
MyRunnable r=new MyRunnable();
//r.start();
Thread t1=new Thread(r);
t1.start();
for(int i=0;i<100;i++){
System.out.println("main thread "+i);
}
}
}
class MyRunnable implements Runnable{
public void run(){
for(int i=0;i<100;i++){
System.out.println("My thread "+i);
}
}
}
What is the explanation of this program?