What is String Args in Java?5
1123 5b5cc6b6e4d2b4197774d582
Q: What is String Args in Java?
- Show Answer
- Workspace
- Discuss
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.
Similar Questions
Since Nithya and Suganya exchange places, so Rita’s new position is the same as Monika’s earlier position. This position is 17th from the right and 10th from the left. Therefore Number of girls in the row = (16 + 1 + 9) = 26.