Why we use ‘String args[]’ as a argument in main method of java?

We would have definitely used (String args[]) argument in our main method of java, but most of the people don’t even know the real reason using this argument. String args[] is a array object of String class. Usually, it is used to store the command line arguments. When we run our java programs and weContinue reading “Why we use ‘String args[]’ as a argument in main method of java?”

Design a site like this with WordPress.com
Get started