Question d’entretien chez 21CT

How do you create another thread in Java?

Réponse à la question d'entretien

Utilisateur anonyme

5 déc. 2013

implementation create 1. create a class1 that implements Runnable Must include method public void run() {} create 2. create a class2 that extends Thread start 1. (new Thread(new class1())).start(); start 2. (new class2()).start();