programming centre

Programming centre

Saturday, November 16, 2013

java Program to Implement Thread using Runnable Interface

Program to Implement Thread using Runnable Interface
class A implements Runnable
{
public void run()
{
for(int i=0; i<20; i++)
{
System.out.println(i);
}
}
}
class Run1
{
public static void main(String args[])
{
A a1 = new A();
Thread t = new Thread(a1);
t.start();
}
}
Posted by programming centre at 8:37 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: java programs
Newer Posts Older Posts Home
View mobile version
Subscribe to: Posts (Atom)

About Me

Sujith Baby

Search This Blog

Labels

  • android (8)
  • c plus plus programs (21)
  • c programs (80)
  • Data structure using c plus plus (12)
  • java programs (28)
  • Shell programs (10)
  • tricks corner (5)
  • visual c plus plus programs (15)

Total Pageviews

posts

  • ▼  2018 (3)
    • ▼  January (3)
      • function to print the repeated values in an array ...
      • java program to download file from url
      • java program to download a file from an external url
  • ►  2017 (9)
    • ►  August (8)
    • ►  February (1)
  • ►  2016 (14)
    • ►  August (4)
    • ►  January (10)
  • ►  2015 (12)
    • ►  June (12)
  • ►  2014 (20)
    • ►  November (20)
  • ►  2013 (62)
    • ►  November (2)
    • ►  September (3)
    • ►  August (11)
    • ►  July (9)
    • ►  May (3)
    • ►  April (31)
    • ►  March (2)
    • ►  February (1)
  • ►  2012 (60)
    • ►  November (8)
    • ►  October (8)
    • ►  September (44)
Picture Window theme. Powered by Blogger.