开发者

Contents of an Interface

开发者 https://www.devze.com 2023-02-09 14:56 出处:网络
What are all the thin开发者_运维百科gs that an interface can have, apart from abstract method and static variables?

What are all the thin开发者_运维百科gs that an interface can have, apart from abstract method and static variables?

Please give me few explainations. Inputs are highly welcomed.


Wikipedia is your friend: http://en.wikipedia.org/wiki/Java_interface

The article explains it well and also has examples.


It can contain an inner class or interface also. Hava a look at Map.Entry.


An interface can have inner classes in addition to what you have mentioned.

0

精彩评论

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