¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
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 Respuestas
+ 4
Yes, in that case, your class must implements the Runnable interface.
0
ohhhh thanks a lot bro