TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to Get Current Thread Name using Java
Gopi Chand
Jun 26
2015
Code
1.9
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
public
class
ThreadName
{
public
static
void
main(String[] args)
{
//* gives current thread name
Thread currentThread = Thread.currentThread();
System.out.println(currentThread);
}
}
Thank you, keep learning and sharing
Current thread name
Threads in Java