Skip to main content
Bumped by Community user
deleted 87 characters in body; edited title
Source Link
Bharat
  • 119
  • 5

Why does the Thread Class designed to implement Runnable interface

We know that we can start new with extending Thread class or by implementing Runnable. My question is that is there any reason for Thread class to implement Runnable interface by itself. Are there any specific use cases where overriding Thread makes more sense than implementing Runnable by design

Why does the Thread Class designed to implement Runnable interface

We know that we can start new with extending Thread class or by implementing Runnable. My question is that is there any reason for Thread class to implement Runnable interface by itself. Are there any specific use cases where overriding Thread makes more sense than implementing Runnable by design

Why does the Thread Class implement Runnable interface

My question is that is there any reason for Thread class to implement Runnable interface by itself. Are there any specific use cases where overriding Thread makes more sense than implementing Runnable by design

Source Link
Bharat
  • 119
  • 5

Why does the Thread Class designed to implement Runnable interface

We know that we can start new with extending Thread class or by implementing Runnable. My question is that is there any reason for Thread class to implement Runnable interface by itself. Are there any specific use cases where overriding Thread makes more sense than implementing Runnable by design