Meaningless Drivel is fun!
The moose likes Java in General and the fly likes overloading main method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "overloading main method" Watch "overloading main method" New topic

overloading main method

Akshayan Venkatesh

Joined: Apr 13, 2006
Posts: 26
hi friends,

can main() method be overloaded? ..explain

Thanks in advance
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Every method can be overloaded. But only the one with a String[] argument will be called by the JVM as the entry point.

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Yuen-Chi Lian

Joined: Jun 12, 2007
Posts: 5
What about telling us what you actually want to achieve and how you want to start the execution?


<a href="" target="_blank" rel="nofollow">yc</a>
I agree. Here's the link:
subject: overloading main method
It's not a secret anymore!