why is it mandatory to pass string arg[] as an argument in main method? why we cannot pass any other data type available in java? whats the importance of passing String arg[
when we run a java program to command prompt, we can pass some input to our Java program. Those inputs are stored in this String args array.