Java mathod me ager string []arg Nhi dalte to ye run kyu nhi hota | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Java mathod me ager string []arg Nhi dalte to ye run kyu nhi hota

public static void main() × public static voidmain( string [ ]arg) √ why its happen

15th Feb 2021, 10:47 AM
Shivraj
Shivraj - avatar
4 Answers
+ 7
Yes Shivraj because it is the syntax of Java programming. So it won't work if you don't mention string args[] Hope it is clear to you now
15th Feb 2021, 10:52 AM
Aysha
Aysha - avatar
+ 6
Shivraj yes it is used in all types programs and most welcome
15th Feb 2021, 12:58 PM
Aysha
Aysha - avatar
+ 4
its use all of mathod ,main,test,
15th Feb 2021, 10:54 AM
Shivraj
Shivraj - avatar
+ 4
Aysha thanks to you
15th Feb 2021, 11:15 AM
Shivraj
Shivraj - avatar