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. sir, i need java code to display position and velo
View Tutorial          By: Sandhya Yadav at 2015-08-20 07:16:04

2. How to fetch a value from a database in dropdown b
View Tutorial          By: lara at 2014-11-19 09:02:43

3. what is the data type of the variable direction di
View Tutorial          By: [email protected] at 2009-12-25 03:07:46

4. Hello
I installed Android in eclipse...only

View Tutorial          By: amit kumar at 2012-01-19 11:04:55

5. Good one. Clear basic concept
View Tutorial          By: Joshua at 2010-03-12 01:13:08

6. Thanks a lot this thing was very importent for me!
View Tutorial          By: Andrew at 2010-05-23 01:47:04

7. Hi, my name is Jaime,
I wan't to do a jsp w

View Tutorial          By: Jaime at 2011-10-24 12:47:50

8. that was gud example to explain abstract. i have d
View Tutorial          By: zishan at 2010-05-20 00:21:46

9. I am getting following error, I am using samsung m
View Tutorial          By: Ashok at 2013-08-17 05:29:02

10. Zabardast
View Tutorial          By: Rohan at 2011-11-03 08:25:59