What is the first argument of the String array in main() method?

 
 

Share on Google+Share on Google+

Java Coder
What is the first argument of the String array in main() method?
1 Answer(s)      4 years and 8 months ago
Posted in : Java Beginners

Hi,

What is the first argument of the String array in main() method?

Thanks,

Ads
View Answers

April 9, 2013 at 3:18 PM


Hi,

The String array is empty. It does not have any element. This is unlike C/C++ where the first element by default is the program name.

You also learn how to declare a string array and the syntax for using in the program. This article gives your a very easy java program which illustrates about the string array in very efficient manner.

For details on What is the first argument of the String array in main() method?


Ads









Related Tutorials/Questions & Answers:

Ads

 
Advertisement null

Ads