Advanced Java Tutorial


Total available pages count: 55
Subject - Java Technologies

Naming thread

The Naming thread class provides the method to change & get the name of the thread. Using the setName() method, we can change the name of the thread.

public string getName()
//getName() is used to return the name of a thread

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

 



Comments