Can anyone explain this why we use String a[] in public static void main (String a[]) | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Can anyone explain this why we use String a[] in public static void main (String a[])

18th Jul 2017, 2:33 PM
Rajan Khorasiya
Rajan Khorasiya - avatar
2 ответов
+ 2
all the command line arguments are stored in that String array
18th Jul 2017, 2:41 PM
Ashwaghosh Sadanshiv
Ashwaghosh Sadanshiv - avatar
+ 1
When you run the Java application from another program (Command Line) the input will go through String a[] This gives the program an opportunity to use input from another program to complete a task
18th Jul 2017, 2:36 PM
Limitless
Limitless - avatar