Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not a java developer but why the void? Shouldn't your main function and program return an integer?




I believe that is a C-ism, where the C runtime calls your main() and exits the process with the return value. The Java equivalent is System.exit(int status).

The return type of a Java main is the JVM platform return type

Sending system signals is external to the JVM platform




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: