Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How to Get Current Thread Name using Java
WhatsApp
Gopi Chand
Jun 26
2015
2
k
0
0
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
Up Next
How to Get Current Thread Name using Java