DEVFYI - Developer Resource - FYI

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

Java Interview Questions and Answers (part 3)


(Continued from previous question...)

480. What is the first argument of the String array in main method?

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.

(Continued on next question...)

Other Interview Questions