Thread & Runnable

Nadpisanie metody run() w Thread powoduje, że ta nadpisana metoda zostaje wywołana zamiast run() z Runnable.
Nawet jesli run() jest w Thread i Runnable i runnable jest przekazany do thread, wywolanie run() albo start() uruchamia
run z Thread nie Runnable. Zeby uruchomił się run() z Runnable, w Thread nie moze byc run().

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>