The static method can be called directly by the Main method, not the static method.
Because the static method belongs to a class, it is a class method. Can be called directly through the class name. Method Name.
Instead of the static method, it must wait until the object is new to be used, so it cannot be called directly in Main.
The public void modifier is a non-static method that belongs to an object and can be called after object initialization (new object ()).
public static void decoration is a static method that belongs to a class and is called directly using the class name. Method Name.
Java can call static methods (object names. static methods) through the object name. There is no syntax error in Java (syntax error), but this is not recommended, and static methods should be absolutely differentiated from non-static method invocations, and other OOP languages such as c#,swift,objective-c do not have such syntax.
public void differs from public static void in Java