MSK Technologies

Home
Practice Programs
Java Programs Python Programs Java Quiz
Pages
Python Java Material PLSQL Material
Search A Job

Write a Thread run() program

  1. Home
  2. Java Programs

Write a Thread run() program

Write a Thread run() program

Program
class ThDemo  extends Thread
{
    public void run()  
    {
        System.out.println("This is run Method");
    }   
}
public class Main
{
    public static void main(String args[])
    {
        ThDemo d1=new ThDemo();
        d1.start();
    }
}


Output:

This is run Method


Multi Threading In Java



More Questions


228 . How to check if a string is a palindrome?
229 . How to count the number of words in a given string sentence?
230 . How to reverse the words from the given string sentence?
231 . How to swap two strings without using the third variable?
232 . Write a java program to display message a 2sec time gap without using Multi Threading
233 . Write a java program to display message a 2sec time gap using Thread class
234 . Write a java program to display message a 2sec time gap using runnable interface
235 . Write a java program to display addition program and subtraction program with 2 sec time gap
236 . online Ticket Booking program without using Thread Synchronization
237 . Online Ticket Booking program with using synchronized method
238 . Online Ticket Booking program with using synchronized block


MSK TechnologiesTrainings
Courses
Java Python PLSQL .Net ADO.Net About Us
Quick Links
Daily Use English Sentences Daily General Knowledge General Knowledge Latest Update Inventions and Inventors జనరల్ నాలెడ్జ్ General Knowledge Spoken English Spoken Hindi GK Hindi Telugu Facts Unknown Facts Psychology Facts Motivation Quotes విటమిన్ - సి,డి,ఇ,కె Android
Spiritual
రాధాకృష్ణ భగవద్గీత Motivation Quotes Slokas Talapatra Nidhi ఆధ్యాత్మిక భక్తి ప్రపంచం Sadhguru Sai Motivation Quotes గౌతమ బుద్ధుడు Bhagavad Gita Quotes
Newsletter

Dolor amet sit justo amet elitr clita ipsum elitr est.

© sateeshm, All Right Reserved. Designed By sateeshm
Home Help FQAs