Thread test example

class A extends Thread
{
public void run()
{
    System.out.println("Begin ");
    start();
    System.out.println("End ");


}

public void start()
{

}
}


class ThreadTest
{
    public static void main(String args[])
    {
    A a =new A();
    a.start();
    }
}

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|