title: How to call asynchronous method inside java thread?
body: <p>In Java, is there any way to call and handle asynchronous method inside a thread?</p>
  
  <p>Consider an scenario in which one of the method inside thread body takes more time to execute it. Because of that, thread completion takes more time.</p>
  
  <p>I have tried some examples by using concurrency package classes like FutureTask and Executors.</p>
  
  <p>Is it possible to implement and handle all exceptions inside asynchronous method? and Is it possible to get success or error responses like AJAX success and error handlers in JavaScript?</p>
  
  <p>How will we ensure that asynchronous method successfully executed or not (with or without parent thread context)?</p>