Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   ASP (http://siteownersforums.com/forumdisplay.php?f=11)
-   -   Can main() method in Java can return any data? (http://siteownersforums.com/showthread.php?t=165695)

Shivangi Panwar 03-01-2016 10:12 PM

Can main() method in Java can return any data?
 
Can main() method in Java can return any data?

quantumleap 03-01-2016 10:19 PM

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)


All times are GMT -7. The time now is 06:53 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.