InterviewSolution
Saved Bookmarks
| 1. |
What will happen if we don’t override the thread class run() method? |
|
Answer» Nothing will happen as such if we don’t OVERRIDE the run() method. The compiler will not show any error. It will EXECUTE the run() method of thread CLASS and we will just don’t get any output because the run() method is with an EMPTY implementation. Output: Started Main. Ended Main. |
|