can we change the name of main thread in Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

can we change the name of main thread in Java?

in java we can change the name of other threads by using setName() method and retrieve it by using getName(). Is there any way to change and get the main thread name? I'm not sure if there might be any purpose for doing such thing I just got curious to know if it's possible

21st Jul 2019, 12:19 PM
salar vahidi
salar vahidi - avatar
1 Answer
+ 1
~ swim ~ thank you so much
21st Jul 2019, 4:13 PM
salar vahidi
salar vahidi - avatar