Using Thread class with a static method to start a thread.