What is “String args[]”? parameter in main method Java

I’m just beginning to write programs in Java. What does the following Java code mean?

public static void main(String[] args)
  • What is String[] args?

  • When would you use these args?

Source code and/or examples are preferred over abstract explanations

18 Answers
18

Leave a Comment