answer this!
1. Explain the usage of “String[] args” in public static void main!
pls help me!
Answers
Answered by
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
Physics,
3 hours ago
Math,
3 hours ago
Biology,
3 hours ago
Computer Science,
5 hours ago
English,
8 months ago
Accountancy,
8 months ago