Which method is used to set the name of a thread in Java?

Last Updated :
Discuss
Comments

Which method is used to set the name of a thread in Java?

setName()

setThreadName()

setThread()

assignName()

Share your thoughts in the comments