Why public static void main is used in Java?

Zoe Lee | 2023-05-05 14:09:54 | page views:1063
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Ethan Lee

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

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.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4