title: Java Thread Return Value/Data from run function
body: <p>I have one doubt. IF we talk with respect to Java Multithreading, excluding concurrency framework, then how can we return a value from the run() method.</p>
  
  <p>I was asked this question in some interview and was asked how to do this without using callable or concurrency framework ie how to tell main thread that Thread1 has completed some execution(run() completed) and you can update the UI.</p>
  
  <p>EDIT: This is different from the question marked as duplicate, the current question asks about how will you design/code using runnable to return value. This is not possible as per the run() function but what is asked is how to achieve this behaviour via code for runnable so that main thread can be notified/updated?</p>
  
  <p>I suppose these are different questions. Please correct me if I am wrong.</p>