Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
prmoustache
4 days ago
|
parent
|
context
|
favorite
| on:
Java Hello World, LLVM Edition
Not a java developer but why the void? Shouldn't your main function and program return an integer?
tadfisher
4 days ago
|
next
[–]
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).
reply
gavinray
4 days ago
|
prev
[–]
The return type of a Java main is the JVM platform return type
Sending system signals is external to the JVM platform
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: