Java中的静态类成员是静态的吗?

0 java static

在下面的代码中,是bshow固有的静态?

public class A {
    public static class B {
        private int b = 0;
        public void show() {
            System.out.println(b);
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

Roh*_*ain 9

不,他们不是static.您需要创建一个B访问它们的实例.