+ 1

What is public static void main

18th Jul 2019, 10:07 AM
Siddhant Patra
Siddhant Patra - avatar
3 odpowiedzi
+ 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
18th Jul 2019, 10:10 AM
Ankul Chaudhary
Ankul Chaudhary - avatar
+ 4
Not sure how your tags are relevant to the question though.
18th Jul 2019, 10:14 AM
Sonic
Sonic - avatar
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
9th Sep 2019, 10:02 AM
Suraj Gupta
Suraj Gupta - avatar