vegetto Profile Answers by vegetto Jun 16th, 2008 you write public static void main(String args[])so the argument type isstring and whatever input you give asjava abs "asd" 1then all the 3 arguments are stored int he corresponding string format in the args array and if you write for(int i=0;i<args.length;i++){ System.out.println(args[i]);} the it prints:abs"asd"1
srinugrandhi Profile Answers by srinugrandhi May 13th, 2009 In C and C++, main() function can take the arguments with type int and char as shown below.void main(int argc,char *argv)In Java main() function take the arguments in String type and the above type is also allowed.
What is the argument type of a program's main() method