Comment on Tutorial - A simple Thread sample in Java By Henry



Comment Added by : vivek tiger

Comment Added at : 2012-04-19 10:19:56

Comment on Tutorial : A simple Thread sample in Java By Henry
class thrs
{
public void run()
{
System.out.println("jhg");
}
public static void main(String []str)
{
try
{
for(int i=0;i<9;i++)
{
System.out.println(i);
Thread.sleep(5000);
}
}
catch(InterruptedException e)
{
System.out.println("thread exception");
}
//Thread vk=new Thread();
//vk.start();
}
}


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. i hav d same error as sudhir has "INVALID PO
View Tutorial          By: JAY SHAH at 2011-02-14 09:33:12

2. Good explanation, Thanks.
View Tutorial          By: bram at 2011-05-06 03:37:54

3. good explanation .... Thanks
View Tutorial          By: nazeer at 2012-05-24 09:18:19

4. Hi,

Your COM port is currently in u

View Tutorial          By: Ramlak at 2008-04-14 07:29:55

5. Awesome .
Helpfull!!

View Tutorial          By: ARMLAB-NG at 2009-06-06 09:22:00

6. Nice info. I must say about this post.
than

View Tutorial          By: Ganesh Prasad at 2012-10-30 05:51:49

7. Thanks a ton Ganesh...
View Tutorial          By: Anonymous at 2012-01-25 11:20:40

8. Good post
View Tutorial          By: Yogesh NAik at 2015-03-04 06:45:34

9. Dear any buddy i use Nokia N73 and connect with Bl
View Tutorial          By: zstranger at 2012-03-29 07:47:02

10. thanks for posting
View Tutorial          By: sriram at 2011-11-24 06:38:42