title: Restoring/Restarting a java daemon from crash
body: <p>I am running a java app as daemon on a linux machine using a customized shell script.</p>
  
  <p>Since I am new to java and linux, I want to know is it possible that the app itself resurrects itself(just like restart) and recovers from cases like app crashing, unhandled exceptions or out of memory etc.</p>
  
  <p>thanks in advance</p>
  
  <p>Ashish Sharma</p>