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


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

Why main method is static?
sunled is offline   Reply With Quote

Old 12-11-2017, 08:41 PM   #2
Registered User
Join Date: Sep 2017
Posts: 208
The main method must be declared public, static and void in Java otherwise, JVM will not able to run Java program.
travelowebseo is offline   Reply With Quote

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

All times are GMT -7. The time now is 09:00 AM.

Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.