Get Started
1091

Q: What is String Args in Java?

  • Show 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.

The Most Comprehensive Exam Preparation Platform

Get the Examsbook Prep App Today