62,620
社区成员
发帖
与我相关
我的任务
分享
class A{
class B{
static void C(){};
//error: The method C cannot be declared static;
// static methods can only be declared in a static or top level type
static int a;
//error: The field a cannot be declared static;
// static fields can only be declared in static or top level types
}
}
public class A{
static class B{
static int C;
}
}