Hari Dhanakoti wrote:
We make use of the String... in the code snippet as such
As for main method I guess there's no difference. But in this case:
For 1 you can pass either varargs (surprise, surprise ) or a String array.
For 2 only String array will work.
The most strange part for me is that signature for both methods is equal: compiler will complain about duplicated method if you put both of them into one class.