ben oliver wrote:...Does those -cp, -classpath, etc counted in the args string array ? or does java automatically ignore these key words when it counts "args" ? It seems these key words are not counted as I tried, but want to confirm.
When invoking from the command line, the format is...
java [-options] class [args...]
The String array passed to main will include
only Strings supplied as [args...]. If none are supplied, then args.length will be zero.
[-options] are
not included in that String array.