logo

Crowdly

Browser

Add to Chrome

Which of the following statements start a new thread? a) Thread t1 = new Thr...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Which of the following statements start a new thread?

a)

Thread t1 = new Thread(()-> System.out.println("I want to run ..."));

t1.start();

b)

Thread t2 = new Thread(new Runnable() {

@Override

public void run() {

System.out.println("I want to run ...");

}

});

t2.start();

c)

Thread t3 = new Thread (()->System.out.println("I want to run ..."));

t3.run();     

d)

Runnable t4 = () -> System.out.println("I want to run");

t4.start();
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.jku.at?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome