界面中静态和非satic成员之间的区别。 [英] Difference between static and non-satic members in interface.

查看:64
本文介绍了界面中静态和非satic成员之间的区别。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问您能帮我弄清楚接口中静态和非静态成员之间的区别吗?

解决方案

只有字段在接口中可以是静态的(它们是'隐含地是静态的,公开的和最终的)。方法

隐含抽象和公开。


亲切的问候,


Jos


只有字段在接口中可以是静态的(它们是隐式静态,公共和最终的)。方法

隐含抽象和公开。


亲切的问候,


Jos


谢谢,这就是我所期待的......所以还有一个问题..静态和非静态内部接口是什么?



谢谢,这就是我所期待的......所以还有一个问题......什么是静态和非静态的内部接口?



这个论坛里有一篇新的小文章;它位于线程页面的顶部,并且

被命名为Read This First。

中有Java语言规范的链接;如果我没弄错的话,第9章会回答你所有的问题吗?b $ b太害怕了。


亲切的问候,


Jos


Please can you help me to figure out the differences between static and non-static members in interfaces?

解决方案

Only fields can be static in an interface (they''re implicitly static, public and final). Methods
are implicitly abstract and public.

kind regards,

Jos


Only fields can be static in an interface (they''re implicitly static, public and final). Methods
are implicitly abstract and public.

kind regards,

Jos

Thanks that''s what i expected .... so one more question ..what abut static and non-static inner interface?


Thanks that''s what i expected .... so one more question ..what abut static and non-static inner interface?

There''s a new little article in this forum; it is at the top of the threads page and
is named "Read This First". There''s a link to the Java Language Specifiction in
there; if I''m not mistaken it''s chapter #9 that answers all your questions you
were too afraid to ask.

kind regards,

Jos


这篇关于界面中静态和非satic成员之间的区别。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆