Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. The Runnable interface describes a class whose instances can be run as a thread. The interface itself is very simple, describing only one method ( run ) that is called automatically by Java when the thread is started. The Runnable interface is usually used in conjunction with the Thread class. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve   | ||||
Related Questions | ||||
Why do we need Thread class even in case we execute thread using runnable interface ? | ||||
What is the use of runnable interface if we can always create a new thread using Thread class ? | ||||
Is runnable a Marker interface ? | ||||
Why do we use Thread Class as well as Runnable Interface for creating threads in Java ? | ||||
How executor service is better than using primitive Threading mechanism using Thread class or runnable Interface ? | ||||