Home / MCQ Bank / Computer
Computer Threads

What will be the output of the following Java code? class newthread extends Thread { Thread t1,t2; newthread() { t1 = new Thread(this,"Thread_1"); t2 = new Thread(this,"Thread_2"); t1.start(); t2.start(); } public void run() { t2.setPriority(Thread.MAX_PRIORITY); System.out.print(t1.equals(t2)); } } class multithreaded_programing { public static void main(String args[]) { new newthread(); } }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • falsefalse

Related Computer Questions

An embedded object might appear in a document as Which of the following data constraints would be used to specify that the value of cells in a column must be one of a specific set of possible values? What will be the output of the following C code? #include <stdio.h> int x; void main() { printf("%d", x); } A character that is raised and smaller above the baseline is known as Which of the following declaration is not supported by C language?