Yes can write static public void instead of public static void. Consider the following example,
package com.vini.sample;
public class Sample {
public static void main(String[] args) {
System.out.println("Welcome to Queryhome.com");
}
}
package com.vini.sample;
public class Sample {
static public void main(String[] args) {
System.out.println("Welcome to Queryhome.com");
}
}
Above two examples working fine. Both sample programs gives same output i.e.,
Welcome to Queryhome.com