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. Very good !!
View Tutorial          By: SGK at 2009-04-26 23:53:44

2. Hey i see some lines of code in order to displpay
View Tutorial          By: Bala at 2013-01-09 13:58:48

3. i just got to know about this and i am really imp
View Tutorial          By: spo_mega at 2009-06-11 07:16:38

4. This explaination is good to understand the basic
View Tutorial          By: Nisha Thankachan.F at 2013-02-13 05:29:13

5. thanks!!
View Tutorial          By: eoko at 2011-05-10 23:34:29

6. i thnk exampleThread example is wrong - like billg
View Tutorial          By: oldman at 2011-09-24 12:32:33

7. thanks! great tutorial!
View Tutorial          By: Gracia at 2013-01-10 07:58:06

8. it's really Nice Clock
View Tutorial          By: Mido at 2007-09-09 08:45:49

9. A lucid explanantion is "when a method name i
View Tutorial          By: harshnil at 2013-01-15 03:57:44

10. Performance is low while working with BULK DATA
View Tutorial          By: kailash at 2009-07-17 06:11:55