Because the command line environment (from where applications are started) only understands characters, and has no notion of numbers. Plus, strings can be converted into numbers if need be, but not vice versa.
Main Method is the communication medium between jvm and user, so it should receive the input from user in user understandable format ie String...
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35429
9
posted
0
I'm sorry, but that doesn't make sense - a number is just as understandable by a user as a string.
Gokul Nanthakumar
Ranch Hand
Joined: May 11, 2010
Posts: 52
posted
0
My view is as long the number is not associated with some thing it does not have any meaning, 15 can represent a day in a month or money or age, etc etc. it can be a symbol as well. but words are self explanatory (when they are meaningful).