Threads help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Threads help

did i understand correctly? when a class(class Animal) extends threads.it inherits all the properties from thread class that is already stored in java program. when you create an object from the main method and use it to call the start method,a thread is created and it will override the run method.the run method is executed

5th Nov 2017, 3:14 PM
oyl
3 Answers
+ 8
is ur question answered now?
5th Nov 2017, 7:50 PM
David Akhihiero
David Akhihiero - avatar
+ 7
You should've asked this in the lesson but u got it right; you have to override the run method
5th Nov 2017, 7:44 PM
David Akhihiero
David Akhihiero - avatar
+ 1
there are hundreds of comments there.it is slower to get a reply
5th Nov 2017, 7:45 PM
oyl