Threads Flashcards
1
Q
How to create new thread
A
A class can either extend from Thread or implement the Runnable interface. In both cases the class must override the run() method. (executed when thread.start() is called)
How to create new thread
A class can either extend from Thread or implement the Runnable interface. In both cases the class must override the run() method. (executed when thread.start() is called)