4th December 2019


What is the meaning of public static void main String args in Java?

public - it is access specifier means from every where we can access it. static - access modifier means we can call this method directly using class name without creating an object of it. void - its the return type. main - method name. string [] args - in java accept only string type of argument and stores it in a

Keeping this in view, what is the meaning of args in Java?

String [] arguments is a java array of String objects. This means that the main function expects an array of Strings. This array of strings typically holds all command line parameter arguments passed in when the program is run from the command line.

What is the use of String args in C#?

vote 74. From the C# programming guide on MSDN: The parameter of the Main method is a String array that represents the command-line arguments. So, if I had a program (MyApp.exe) like this: class Program { static void Main(string[] args) { foreach (var arg in args) { Console.
Write Your Answer


80% people found this answer useful, click to cast your vote.

4 / 5 based on 2 votes.


Press Ctrl + D to add this site to your favorites!