1) IN c and c++ we passes two parameter argc and argv. argc is the the no of argument passes and argv is a pointer to an array of charecter which contain the actual arguments.
In JAVA we passes only one arguments, args.args is the array of String which contain the actual arguments.
2) In c and c++ the first argument is the name used to invoke the program.
In java you already know the name of the program because it is same as the name of the class.
__________________
Asit Kumar Purohit.
SRIC,IIT Kharagpur.
West Bengal,India
Mail me
|