InterviewSolution
| 1. |
What Is More Advisable To Create A Thread, By Implementing A Runnable Interface Or By Extending Thread Class? |
|
Answer» Strategically speaking, threads CREATED by implementing Runnable interface are more advisable. If you create a THREAD by extending a thread CLASS, you cannot EXTEND any other class. If you create a thread by implementing Runnable interface, you save a space for your class to extend another class now or in future. Strategically speaking, threads created by implementing Runnable interface are more advisable. If you create a thread by extending a thread class, you cannot extend any other class. If you create a thread by implementing Runnable interface, you save a space for your class to extend another class now or in future. |
|