MSK Technologies

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

Write a Thread currnetThread() program

  1. Home
  2. Java Programs

Write a Thread currnetThread() program

Write a Thread currnetThread() program

Program
class ThDemo  extends Thread
{
    public void run()  
    {    
        System.out.println("Current  thread is: "+Thread.currentThread().getName());
    }   
}
public class MAin
{
    public static void main(String args[])
    {
        ThDemo d1=new ThDemo();
        d1.start();
    }
}


Output:

Current thread is: Thread-0


Multi Threading In Java



More Questions


226 . How to reverse a string in Java without using the reverse method ?
227 . How to count the occurrence of the given character in a string?
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


Interview Questions

Java Interview Questions

Python Interview Questions

Oracle Interview Questions

100 Most Asked Java Interview Questions and Answers

HR Interview Questions and Answers

Top 50 OOPS Interview Questions & Answers

Apply For The Job

Apply For Job

Java Material

Python Material

PLSQL Material

.Net Material

Java Practice Programs

400 Java Programs

Java Practice Programs

Write a Java program to count the number of even and odd elements in a given array

Write a Java program to convert a binary number to decimal number

Write a Java program to print ‘Hello World!’ on screen

Write a Java Program to Check if a Number is Positive, Negative or Zero.

Write a Java program to check if a positive number is a palindrome or not

Python Practice Programs

Write a Python Program to Print the Fibonacci sequence.

Write a Python Program to Check Prime Number.

Write a python program to counting item occurrences

Write a Python program that accepts a filename from the user and prints the extension of the file.

Write a python program to Find the index of the smallest number in the list

Interview Questions

Java Interview Questions

Python Interview Questions

Oracle Interview Questions

100 Most Asked Java Interview Questions and Answers

HR Interview Questions and Answers

Top 50 OOPS Interview Questions & Answers

Java Quiz

Java Quiz - 15

Java Quiz - 23

Java Quiz - 5

Java Quiz - 6

Java Quiz - 14

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