Multi Threading
© examsiri.com
Question : 36 of 44
Marks:
+1,
-0
Given the following
What is the result of trying to compile and run this program?
1. public class WaitTest {
2.   public static void main(String [] args) {
3.    System.out.print("1 ");
4.    synchronized(args){
5.     System.out.print("2 ");
6.     try {
7.      args.wait();
8.     }
9.     catch(InterruptedException e){}
10.    }
11.    System.out.print("3 ");
12.   }
13. }What is the result of trying to compile and run this program?
Go to Question: