private static final int A =1;
private final static int A =1;
代码的执行效果是相同的,但是从习惯上命名来说:
[访问限定符] [static] [final] [类型名]
private static final int A =1;
private final static int A =1;
代码的执行效果是相同的,但是从习惯上命名来说:
[访问限定符] [static] [final] [类型名]
本文标题:static和final的顺序
本文链接:https://www.haomeiwen.com/subject/vtunkctx.html
网友评论