Why is String[] args required in main method.. why not Object[] although Object can contains of String or even any type of objects.
Asked
Active
Viewed 81 times
0
-
see this http://stackoverflow.com/questions/890966/what-is-string-args-parameter-in-main-method-java – SatyaTNV Jul 17 '15 at 10:36
-
Its holding startup parameters, that you provide when starting the programm. How would you pass an object? – Stefan Jul 17 '15 at 10:36
-
http://stackoverflow.com/questions/1672083/why-is-string-args-required-in-java – Ruchira Gayan Ranaweera Jul 17 '15 at 10:36
-
you always pass String as parameters . – nafas Jul 17 '15 at 11:02