Argument to main method ?
Why is the first argument is a String array in main method?... Why it could only be String ? why cann't it be anything else .. say array of int..Why VM specs require it to be String only ?
[203 byte] By [
Shebua] at [2007-11-27 9:05:09]

OK lets say the arg to main was an array of ints. Then how would I execute a program that needed some String values as parameters?
If it is an array of Strings and your program needed ints as parameters, you can always parseInt the String values in the array.
Somebody else will probably be able to pull something out of the JLS that explains it.
They're strings because they are populated from text passed in via the command-line. The command-line has no concept of different data types, it reads everything as a stream of characters. It's up to individual programs to decide what to treat that data as