As you might know, static here is an access modifier, which is used for the memory management. It can be used with various variables, methods, blocks and nested classes.
When a method is declared as static:
It belongs to the class and not to the object of the class
It can be then invoked, without the using the object of the class
Also, it can access the static members of a class and edit them.
By using the static keyword with a method, basically helps in removing the ambiguity in case there is some other main method in your program.