03-01-2016, 10:12 PM | #1 |
Registered User
Join Date: Nov 2015
Posts: 127
|
Can main() method in Java can return any data?
Can main() method in Java can return any data?
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
03-01-2016, 10:19 PM | #2 |
Registered User
Join Date: Jan 2016
Location: Hyderabad
Posts: 4,287
|
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) |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Affordable Linux/Windows VPS - SSD/VMware/Xen/OpenVZ - CC/Paypal/Bitcoins | AJKpeter | Post your ad here | 0 | 01-28-2015 12:39 AM |
Cheapest High Bandwidth Servers - 1GBPS port - Full Root Access/Linux/Windows/US/UK | AJKpeter | Post your ad here | 0 | 01-21-2015 01:50 AM |
Fast UK VPS, Linux & Windows, Raid-10, SSD Raid-10 - 1GBPS - Bitcoins/Perfect Money | AJKpeter | Post your ad here | 1 | 01-14-2015 01:33 AM |
[UK/USA/EU/CA] VPS Servers in Locations, Linux/Windows/RDP/Root Access - Bitcoins | AJKpeter | Post your ad here | 0 | 01-06-2015 01:09 AM |