Level - Remember
Which method is used to change the name of a thread?
Answers
Answered by
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
0
Answer:
public string get name()
Similar questions