Question: write java output for class myThread implements Runnable { public void run ( ) { Test.obj.notify ( ) ; } } public class Test implements
write java output for
class myThread implements Runnable
public void run
Test.obj.notify;
public class Test implements Runnable
public static Test obj;
private int data;
public Test
data ;
public void run
obj new Test;
obj.wait;
obj.data ;
System.out.printlnobjdata;
public static void mainString args throws InterruptedException
Thread thread new Threadnew Test;
Thread thread new Threadnew myThread;
threadstart;
threadstart;
System.out.printf GFG ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
