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 > Java

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 11-16-2017, 03:01 AM   #1
sunled
Registered User
 
Join Date: Nov 2017
Posts: 314
Why main method is static?

Why main method is static?
__________________

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.
,
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.
sunled is offline   Reply With Quote

Old 12-11-2017, 09:41 PM   #2
travelowebseo
Registered User
 
Join Date: Sep 2017
Posts: 84
The main method must be declared public, static and void in Java otherwise, JVM will not able to run Java program.
__________________

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.
|
travelowebseo 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
What is static method? sunled Java 2 12-11-2017 09:38 PM
What is static method? sunled Java 0 11-16-2017 03:01 AM
What is Main Difference Between Dynamic Url And Static Url..? michaelthompson Search Engine Optimization 2 12-24-2016 02:57 AM
Can main() method in Java can return any data? Shivangi Panwar ASP 1 03-01-2016 10:19 PM
static or pseudo-static web pages? hostingcoupons Web Promotion 0 05-14-2012 03:36 AM


All times are GMT -7. The time now is 12:30 AM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.