Can a Static Nested Class be Instantiated Multiple Times?

前端 未结 6 1039
别那么骄傲
别那么骄傲 2021-02-05 05:14

Given what I know of every other type of static feature of programming––I would think the answer is \'no\'. However, seeing statements like OuterClass.StaticNestedClass ne

6条回答
  •  迷失自我
    2021-02-05 05:51

    Yeah you can make instances of it as many times as you want.

    Maybe the reason why you see that, is because the programme thought about storing a reference somewhere. Though i agree with you seems strange :S

提交回复
热议问题