public class MyRunnable implements Runnable { public void run() { // some code here } } which of these will create and start this thread? - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
07 Mar 2023 01:13 PM study24x7 study24x7

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

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles