logo

Crowdly

Browser

Add to Chrome

Що буде виведено у результаті виконання програми? class My Thread extends Th...

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

Що буде виведено у результаті виконання програми?

class MyThread extends Thread

{

    MyThread() {}

    MyThread(Runnable r) {super(r); }

    public void run()

    {

        System.out.print("Inside Thread ");

    }

}

class MyRunnable implements Runnable

{

    public void run()

    {

        System.out.print(" Inside Runnable");

    }

}

class Test

    public static void main(String[] args)

    {

        new MyThread().start();

        new MyThread(new MyRunnable()).start();

    }

}

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

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

Browser

Add to Chrome