

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program?
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(); } } |
A. | True |
B. | False |
C. | Truetrue |
D. | Falsefalse |
Answer» E. | |