What is the super class for all the interfaces in java [closed]

爷,独闯天下 提交于 2019-12-09 04:00:33

问题


In java, I know that super class of all "classes" is "Object" class. My doubt is,what is the super class for all the "interfaces" in java.


回答1:


Interfaces are not classes. Therefore, an interface cannot have a superclass, and your question is essentially invalid.

  • Is Interface a class?
  • Is a Java interface an abstract class?



回答2:


Interfaces can extend of each other but no a super class for interfaces.



来源:https://stackoverflow.com/questions/22451297/what-is-the-super-class-for-all-the-interfaces-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!