Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
if our run() method is in the same class as our thread instance ....so.instead of writing something like Thread thread=new Thread(new myclass); ......would Thread thread =new Thread(this); suffice?
2 Antworten
+ 4
Yes, in that case, your class must implements the Runnable interface.
0
ohhhh thanks a lot bro