Hello Pavitra, I think it was architect/designer's call. Also, C/C++ has it similar. This article will help you.
http://stackoverflow.com/questions/1672083/why-is-string-args-required-in-java Thanks, Gagan Sent from my iPhone > On Nov 30, 2013, at 4:35 PM, Pavitra Gupta <[email protected]> wrote: > > In public static void main(String str[]) method is it possible to pass an int > array or of any other type rather than String? Why is it String only? > -- > You received this message because you are subscribed to the Google Groups > "JPassion.com: Java Programming" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at http://groups.google.com/group/jpassion_java. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "JPassion.com: Java Programming" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/jpassion_java. For more options, visit https://groups.google.com/groups/opt_out.
