开发者

Inner interface classes?

开发者 https://www.devze.com 2023-03-21 07:13 出处:网络
Are class that are declared inside and interface automatically declared static? I am aware that variables are automatically declared static 开发者_JS百科final. I\'m just unsure as to interfaces.If a C

Are class that are declared inside and interface automatically declared static? I am aware that variables are automatically declared static 开发者_JS百科final. I'm just unsure as to interfaces.


If a Class is declared inside an Interface then it is static.


According to the JLS:

A member type declaration in an interface is implicitly static and public

0

精彩评论

暂无评论...
验证码 换一张
取 消