+ 2
What is that piece of string "String[] args" in java means...
why does that mean and what it does in running the program... "public static void main(String[] args)"
4 Respuestas
+ 6
It means the main method takes in "an array of String arguments."
Check out this website for the complete breakdown:
https://www.journaldev.com/12552/public-static-void-main-string-args-java-main-method
+ 5
Read here.
https://www.sololearn.com/learn/Java/2137/?ref=app
public is a access modifier
static ensures that the method can be accessed without instance
void - returns no data type
String[] args- array.
+ 2
it's array of argument
+ 1
public is access modifier....keyword public means the method can be accessed by all....static method means it can be accessed without creating instance of a class....void is return type....void means method returns no value....main() is the name of method and String[] args is parameters.....an array of arguments of type String