67,512
社区成员
发帖
与我相关
我的任务
分享
public class E
{
public static void main(String args[])
{
System.out.println("hello");
}
//用private、protected、 static修饰,都可以通过编译。不能用final修饰
//protected interface D1
//private interface D1
static interface D1
{
void x();
}
}
public class Test {
public static void main(String[] args) {
new D1() {
public void x() {
}
};
}
public void go() {
new D1() {
public void x() {
}
};
}
static interface D1 {
void x();
}
}
貌似static修饰后没有什么特别影响