Java中一个接口可以继承多个接口吗?接口继承接口使用extends关键字

一个接口可以继承多个接口.
interface C extends A, B {}是可以的.
一个类可以实现多个接口:
class D implements A,B,C{}
但是一个类只能继承一个类,不能继承多个类
class B extends A{}
在继承类的同时,也可以继承接口:
class E extends D implements A,B,C{}
这也正是选择用接口而不是抽象类的原因

https://zhidao.baidu.com/question/627716354058021124.html

例如:
public interface RunnableFuture extends Runnable, Future {undefined
/**

  • Sets this Future to the result of its computation
  • unless it has been cancelled.
    */
    void run();
    }
    Runnable和Future时两个接口
    ————————————————
    版权声明:本文为CSDN博主「weixin_44021967」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/weixin_44021967/article/details/119762771