Can anyone tell me about Runnable interface in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone tell me about Runnable interface in java?

7th Dec 2020, 6:38 PM
Yash Chaudhari
Yash Chaudhari - avatar
1 Answer
+ 1
Runnable is an interface that we are using for threads we need to implement this interface in our class and override run method best way for threading is extending Thread class https://www.sololearn.com/learn/Java/2185/
7th Dec 2020, 6:56 PM
Shahghasi Adil
Shahghasi Adil - avatar