Java Programs
Friday, January 10, 2014
How to create thread?
class Thread5 extends Thread
{
public void run()
{
System.out.println("MaHi");
}
public static void main(String surat[])
{
Thread5 t=new Thread5();
t.start();
}
}
Output:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment