*
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
Author

overloading main method

Akshayan Venkatesh
Greenhorn

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


can main() method be overloaded? ..explain

Thanks in advance
Ilja Preuss
author
Sheriff

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
Greenhorn

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

yc


<a href="http://www.yclian.com/" target="_blank" rel="nofollow">yc</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: overloading main method
 
Similar Threads
How to call a stand alone class from WAS???
First GUI program
Help with First Java Code - Party.Java
No such method? Kathy & Bert's book p. 78-79
Garbage collection problem