Java OCA OCP Practice Question 1463

Question

What does the zeroth element of the string array passed to the standard main method contain?

Select 1 option

  • A. The name of the class.
  • B. The string "java".
  • C. The number of arguments.
  • D. The first argument of the argument list, if present.
  • E. None of the above.


Correct Option is  : D

Note

If no argument is passed the args parameter is NOT null but a valid non-null String array of length zero.




PreviousNext

Related