Java Threads Question:
Download Job Interview Questions and Answers PDF
A Thread is runnable, how does that work?
Answer:
The Thread class' run method normally invokes the run method of the Runnable type it is passed in its constructor. However, it is possible to override the thread's run method with your own.
Download Java Threads Interview Questions And Answers
PDF
Previous Question | Next Question |
How does the run() method in Runnable work? | Why not override Thread to make a Runnable? |