Varargs in main method

While going through some of the examples on the internet on “varargs”(variable arguements) feature introduced in Java 1.5, I noticed a strange fact. 

No one uses varargs in main method.

I fail to think of a reason why. In case you know why, please let me know.

What the hell is wrong with this?

// main with varargs
public static void main(String... args) {
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: