What is use static in static void main:-
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