Because, when interpreting the java program we have to provide the name of the Class in which the main() exists. i.e. CMD >java Sample. So the name of the every class is a String. So this clarifies us that the main has to take only String as an argument.