Computer Science, asked by hisyams123, 5 hours ago

answer this!
1. Explain the usage of “String[] args” in public static void main!

pls help me!

Answers

Answered by ANIMELOVERXxz15448
1

Answer:

String []args:-It stores Java command line arguments & Is an array of type Java,Lang,String class....

The name of the String array is args,, but it is not fixed & user can use any name in place of it.

String [] args:-Main is a method which accept the string array in command prompt.Public means you will access anywhere...Static it mainly used for main method because we can call main methodonly one time which is fixed.

Void means it dosen't have any return type.

THANK Uhh...!!!!

MARK ME!!!!

Similar questions