English, asked by sravyu, 6 months ago

Level - Remember
Which method is used to change the name of a thread?​

Answers

Answered by rishabhgupta27
2

Answer:

we can change the name of the thread by using setName() method. The syntax of setName() and getName() methods are given below:

public String getName(): is used to return the name of a thread.

public void setName(String name): is used to change the name of a thread

Answered by vidyabgowda979
0

Answer:

public string get name()

Similar questions