View Single Post
Old 03-01-2016, 10:19 PM   #2
quantumleap
Registered User
 
Join Date: Jan 2016
Location: Hyderabad
Posts: 4,286
According to my knowledge No .
One cannot return a value from a Java main function. Programs can however return a status code.

Try the following to exit with an int status in Java System.exit(45)
quantumleap is offline   Reply With Quote