final 和static 可以同时用,不过你写错了,public去掉final static int a=1;//这样才对这是静态常量public static void 方法名(){}//这是个静态方法