Rabu, 28 Juli 2021

What is String args[] Argument in Java Main method? Example

What is String args is used for or Why we use String arg[] in the main method is a common doubt among Java beginners. The first thing newbies are exposed to while learning Java programming language is writing HelloWorldprogram in Java, Though HelloWorld is the smallest sort of program, it contains a lot of useful information and concept for newbies Java programmers, one of them is the main method and its different attributes. Though I covered a bit of String args[] while discussing Why main is public static in Java, I thought to write this article to explain String args array in more detail. Let's see a simple Java HelloWorld again to understand more about String args in Java.

Lorem ipsum is simply dummy text of the printing and typesetting industry.

Comments


EmoticonEmoticon