Question: Notice the following code . Assume the MyRunnable ( ) is a class extending the Runnable interface. What's the purpose of the highlighted code? public
Notice the following code Assume the MyRunnable is a class extending the Runnable interface. What's the purpose of the highlighted code? public static void mainString args Thread t new Threadnew MyRunnablet; Thread t new Threadnew MyRunnablet; Thread t new Threadnew MyRunnablet; tstart; tstart; try tjoin; tjoin; catch InterruptedException e eprintStackTrace; tstart; Forces program to wait until threads t & t are complete before starting t Forces program to wait until thread t is complete before starting t Threads t and t are potentially running concurrently Thread t isnt started until thread t is complete
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
