0

[DUPLICATE] What is the mean of public static void main(string[],args), pls explain

20th Dec 2016, 9:02 AM
Md khalid
2 Answers
+ 2
This is the starting point of the method called by the JVM. public allows the JVM to access it, static means it doesn't change, void means it doesn't return anything, and String[] args is an array of arguments passed to the program
20th Dec 2016, 9:05 AM
Gabe Rust
Gabe Rust - avatar
0
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.
20th Dec 2016, 10:30 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar