+ 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)"

1st Dec 2018, 1:48 AM
Hiruthicsha
Hiruthicsha - avatar
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
1st Dec 2018, 2:00 AM
Lambda_Driver
Lambda_Driver - avatar
+ 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.
1st Dec 2018, 1:19 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 2
it's array of argument
1st Dec 2018, 2:27 PM
reshma kachhadiya
reshma kachhadiya - avatar
+ 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
1st Dec 2018, 5:00 PM
Subrata Karmakar
Subrata Karmakar - avatar