Computer Science, asked by rgstar8497, 10 months ago

Which of the following is/are TRUE regarding the string array provided as a parameter to
the main method in Java?

Answers

Answered by Anonymous
7

True, the string array provided as a parameter to main method in java:

  • Java main method is an entry of any java program. Its syntax is always public static void main(Strings[] args).
  • You can change only the name of the string array.
  • This line is called java command line argument.
  • Public is the access modifier of the main method. It has to be public so that Java run time can execute.
  • In this main method should be static so that JVM can load the class into memory and call the main method.
Similar questions