日期:2014-05-20  浏览次数:20631 次

一个面试选择题 大家帮忙看下
public interface Foo{
  int k=4;
}
which three are equivalent to line 2(int k=4)??
A final int k=4;
B public int k=4;
C static int k=4;
D private int k=4
E abstarct int k=4;
F volatile int k=4;

我觉得接口默认不都是public static final 类型吗 这怎么选?
答案尽然是BDE 不懂了?

------解决方案--------------------
探讨
public interface Foo{
int k=4;
}
which three are equivalent to line 2(int k=4)??
A final int k=4;
B public int k=4;
C static int k=4;
D private int k=4
E abstarct int k=4;
F volatile int ……