![This following Java program has two parallel threads, in addition to main. What are the possible outputs? Briefly explain the interleavings (i.e., orders of executions) of the two threads leading to each output public class WhoAmI String str1Java String str2-UNIX; Thread t1-new Thread (My Thread 1) public void run) synchronized (str1) synchronized(str2) System.out.println (str1 + -str2); Thread t2new Thread (My Thread 2) I public void runO synchronized (str2) C synchronized(str1) System.out.println(str2 + -str1); public static void main(String a[]) WhoAmI new WhoAmIO w.t1.startO; w.t2.start )](https://media.cheggcdn.com/media%2Fe8b%2Fe8bbe05e-5b99-4cef-bd04-c0af35d5f3f4%2FphpGEWHnT.png)
This following Java program has two parallel threads, in addition to main. What
PayPal Gateway not configured
PayPal Gateway not configured
![This following Java program has two parallel threads, in addition to main. What are the possible outputs? Briefly explain the interleavings (i.e., orders of executions) of the two threads leading to each output public class WhoAmI String str1Java String str2-UNIX; Thread t1-new Thread (My Thread 1) public void run) synchronized (str1) synchronized(str2) System.out.println (str1 + -str2); Thread t2new Thread (My Thread 2) I public void runO synchronized (str2) C synchronized(str1) System.out.println(str2 + -str1); public static void main(String a[]) WhoAmI new WhoAmIO w.t1.startO; w.t2.start )](https://media.cheggcdn.com/media%2Fe8b%2Fe8bbe05e-5b99-4cef-bd04-c0af35d5f3f4%2FphpGEWHnT.png)
This following Java program has two parallel threads, in addition to main. What
PayPal Gateway not configured
PayPal Gateway not configured