Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > ASP

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 03-01-2016, 10:12 PM   #1
Shivangi Panwar
Registered User
 
Join Date: Nov 2015
Posts: 130
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.
Shivangi Panwar is offline   Reply With Quote

Old 03-01-2016, 10:19 PM   #2
quantumleap
Registered User
 
Join Date: Jan 2016
Location: Hyderabad
Posts: 694
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
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 05:28 AM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.