title: main function does not return anything. Why?
body: <p>With respect to C/C++ main() must always return an integer(zero to indicate success and non-zero to indicate failure). I can understand this as the program is run it becomes a process and every process should have an exit status, which we obtain by doing echo $? from shell after the process gets over. </p>
  
  <p>Now I don't understand why is the main method does not return anything in Java? Has it got anything to do with the fact that the program is run on JVM and the JVM process is reposnsible for the returning of exit status?</p>
  
  <p>Please clarify.</p>
  
  <p>Thanks,<br>
  Roger</p>