Creating Threads in Java

public class ThreadDemo{
public static void main(String args[]){
Thread t1= new Thread();
t1=Thread.currentThread();
System.out.println("Thread Name : "+t1.getName());
System.out.println("Thread Priority : "+t1.getPriority());
System.out.println("Thread is Alive : "+t1.isAlive());
System.out.println("Threa is Daemon : "+t1.isDaemon());
t1.setName("Avinash");
t1.setPriority(9);
System.out.println("Thread Name : "+t1.getName());
System.out.println("Thread Priority : "+t1.getPriority());
try{
for(int i=1;i<=5;i++){
for(int j=1;j<=i;j++){
System.out.print(" "+j);
Thread.sleep(200);
}
System.out.println();
Thread.sleep(1000);
}
}catch(InterruptedException ex){
ex.printStackTrace();
}
}
}

We Are Founder..