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
Post a Comment