public class MyRunnable implements Ru

Loading

โœช Choose the correct option.

public class MyRunnable implements Runnable {
public void run() {
// some code here
}
}

Which of these will create and start this thread ?

A. new Runnable(MyRunnable).start();
B. new Thread(MyRunnable).run();
C. new Thread(new MyRunnable()).start();
D. new MyRunnable().start();