+ 1
What is public static void main
3 Respostas
+ 3
It is the starting of Java language
public : it is a access specifier that means it will be accessed by publically.
static : it is access modifier that means when the java program is load then it will create the space in memory automatically.
void : it is a return type i.e it does not return any value.
main() : it is a method or a function name.
string args[] : its a command line argument it is a collection of variables in the string format
+ 4
Not sure how your tags are relevant to the question though.
0
There is four words
Public means any class can access your variables and members.
Static means you cannot change value of variables
Void means nothing is return in main function
Main means in java every class have main method and start from the main method