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



Ask a Question

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. hello!
I am so confused and a total beginne

View Tutorial          By: Jena at 2011-06-11 17:39:39

2. Hello all..
can anyone please help me.. i

View Tutorial          By: Christoven at 2011-06-15 05:55:16

3. Good information...it help me to do mi projecto! t
View Tutorial          By: gnk at 2010-08-12 01:01:50

4. really friends its very useful site for java begin
View Tutorial          By: shekhar at 2011-05-21 03:04:32

5. Thank you very much. This is the easiest and also
View Tutorial          By: Mehmet Üsküp at 2013-06-17 21:08:08

6. very superb
View Tutorial          By: bala at 2008-05-14 04:49:24

7. Saved my life!
View Tutorial          By: Sahil Nair at 2013-09-21 09:26:54

8. Hi I would like to get help with a client-server d
View Tutorial          By: lolaFireBird at 2012-06-29 08:04:31

9. write a program to prepare the student marks for s
View Tutorial          By: belgreen frodo at 2015-03-31 05:41:05

10. @3
argc simply means the argument count.
View Tutorial          By: CDub at 2010-02-22 09:32:54