ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

Why does main () takes only string as argument?

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.
Related Posts Plugin for WordPress, Blogger...
Flag Counter