In C and C++, the system passes two arguments to a program: argc and argv. argc specifies the number of arguments stored in argv. argv is a pointer to an array of characters containing the actual arguments. In Java, the system passes a single value to a program: args. args is an array of Strings that contains the command-line arguments.
Above answer was rated as good by the following members: Krishna Jeevan
RE:
What is the difference between java command line arguments and C command line arguments
In C and C++ the system passes two arguments to a program: argc and argv. argc specifies the number of arguments stored in argv. argv is a pointer to an array of characters containing the actual arguments. In Java the system passes a single value to a program: args. args is an array of Strings that contains the command-line arguments.