As per Java specification, main method has to be marked as static.
It needs only one argument that is an array of String.
A program can compile with a non-static method.
But on execution it will give NoSuchMethodError.
https://www.tutorialspoint.com/can-we-declare-main-method-as-non-static-in-java