123456789101112131415



Question 1: public class MyRunnable implements Runnable
{
public void run()
{
// some code here
}
}
which of these will create and start this thread?

1. new Runnable(MyRunnable).start();
2. new Thread(MyRunnable).run();
3. new Thread(new MyRunnable()).start();
4. new MyRunnable().start();