java - What is args ? and When would you use args? -


this question has answer here:

public static void main(string[] args) 

what string[] args?

when use args?

args name of string array. compulsory in main method in java in order receive parameters input.

if application receives inputs, loaded in args, each of them string inside array in given order. otherwise, args empty array.

more information here


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -