Java Programs
Friday, January 10, 2014
Example of Thread By implementing the Runnable interface.
class Thread6 implements Runnable
{
public void run()
{
System.out.println("Mahi's Thread :P");
}
public static void main(String surat[])
{
Thread6 t=new Thread6();
Thread t1 =new Thread(t);
t1.start();
}
}
Output:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment