Select the correct option to test your answer:
Computer
Threads
Difficulty: Medium
What will be the output of the following Java program? class newthread extends Thread { Thread t; 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(); } }
More Computer Questions
Which of the following internet protocols allows us to access the data overthe World Wide Web?
Presence of code like "s.t.b = 10" indicates . . . . . . . .
What is the purpose of database normalization?
What will be the output of the following C code? #include <stdio.h> int main() { int x = 2, y = 2; float f = y + x /= x / y; printf("%d %f\n", x, f); return 0; }
When does Exceptions in Java arises in code sequence?