How does a new thread is created?

How does a new thread is created?
Answer
There are two ways to create a new thread of execution. One is to declare a class to be a subclass of Thread; The other way to create a thread is to declare a class that implements the Runnable interface.
 

Tìm kiếm

Back
Top