Can a static nested class be instantiated in Java?

后端 未结 4 1873
滥情空心
滥情空心 2020-12-23 21:25

From Oracle\'s Java tutorials I\'ve found this text:

As with class methods and variables, a static nested class is associated with its outer class. An

4条回答
  •  感情败类
    2020-12-23 21:40

    You are confusing static with abstract. Abstract classes can not be instantiated. static is not a valid qualifier for top level classes, but the meaning for inner classes is the one you quoted.

提交回复
热议问题