两者谁在前面均可编译通过
interface Com{
public static final int max = 100;
public final static int min= 10;
}
可以正常实现接口Com并使用max,min的值 不会报错
一般习惯static写在前面。
static修饰的属性强调只有一个
final修饰的属性强调 常量 常量在运行期间不允许被修改。
static final修饰的属性表示一旦给值,就不可修改,并且可以通过类名访问。