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. Hello Everyone
I used this program but i'm

View Tutorial          By: Yougeshwar Khatri at 2011-09-16 08:50:47

2. i have connected my phone through bluetooth using
View Tutorial          By: nikitha at 2013-02-06 05:05:04

3. This solution worked like a charm, thank you. I ha
View Tutorial          By: budfox at 2014-07-15 14:25:16

4. thanks...........its really very helpful for me...
View Tutorial          By: ashwini agarmore at 2013-01-17 06:31:21

5. tnx
View Tutorial          By: arion at 2011-06-03 01:24:30

6. Hi Rima,

Check out http://forums.su

View Tutorial          By: Ramlak at 2008-12-28 03:00:01

7. Excelent article, I will start to use struts 2 now
View Tutorial          By: Alex at 2010-01-20 16:13:34

8. <uses-permission android:name="android.per
View Tutorial          By: Dev at 2012-04-06 06:19:03

9. Nice its very good starter
View Tutorial          By: Gajula Mahesh at 2012-10-28 13:33:06

10. All true, but the 2FA that has been implemented fo
View Tutorial          By: Joe Bloggs at 2013-04-22 13:40:24