Why public static void main is used in Java?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at the University of Manchester, Lives in Manchester, UK.
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.
2023-05-15 14:09:54
评论(499)
Helpful(122)
Helpful
Helpful(2)

Charlotte Scott
QuesHub.com delivers expert answers and knowledge to you.
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.