naveen patil wrote:main method has String arguments as its parameter , but it works fine even when we dont pass any arguments to main method at command prompt. How is that?
Not passing any argument basically means that you are passing zero arguments and that is what you will get in the String parameter of the main method i.e. a String array of length 0. I wouldn't call it "empty", which could be misconstrued to mean that all its elements are null.