title: What happen if we want to interrupt the thread by setting the current by substituting equal to null
body: <p>What Would happen if we interrupt a thread by making it's object reference equal to null</p>
  
  <p>does the thread stack vanish or it still completes its whole processing and safely exists from the run method </p>
  
  <p>There real scenario  is 
  1.  Read a file (validate file check for duplicate)
  2.  Convert the file data to java Beans
  3. validate the beans(check for duplicate in the database)
  4.  insert the bean in the database(Batch of size 100 is added on by one)</p>
  
  <p>There are about 1000 Similar Batch for a single file to be added to The Database   </p>
  
  <p>and all this processing is done in a single task i cannot set a flag of use interrupt because to check flag or interrupt it has to be in while loop in that case the step 1-4 are performed repeatedly  but the step 4 is the last then it should exit from run if i have to manually stop the thread </p>
  
  <p>i want that if interrupt the thread the processing should stop in any of the above step 
  if the 600th chunk is added to the database and interrupt in called for the thread 601 should not be added to database</p>