Since we are able to implement many interface such as Runnable why hasn’t Java deprecated the Thread class yet?
>Solution :
Extending the Thread class is not recommended. But deprecating a class indicates that it shouldn’t be used at all. And Thread is still useful as a standalone class. It’s just that the way we expect programmers to use it has changed, not that it’s become useless or outdated as a concept.
If we deprecated Thread, then most editors would raise a warning on the (perfectly reasonable) code
Thread myThread = new Thread(mySpecialRunnable);
Since that uses, in our hypothetical, a deprecated class.