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();

Comments and Answers (2)

Andy

Andy

What is the correct solution?

Andy

Andy

What is the correct solution?

Avatar

{{SampleComment.userName || "Your Name"}} ~ {{SampleComment.userCity}}

{{SampleComment.commentValue || "Your Answer or Comment goes here...."}}