Join Examsbook
1120 0

Q: What is String Args in Java?

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

String Args (String []) is an array of parameters of type String. In Java, 'args' contains the supplied command-line arguments as an array of String objects. In other words, if you run your program as 'java MyProgram Hello World' then 'args' will contain ["Hello", "World"]. When a java class is executed from the console, the main method is what is called.

Are you sure

  Report Error

Please Enter Message
Error Reported Successfully