logoalt Hacker News

prmoustachelast Sunday at 7:02 PM2 repliesview on HN

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


Replies

tadfisherlast Sunday at 7:34 PM

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).

gavinraylast Sunday at 8:09 PM

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

Sending system signals is external to the JVM platform