经常能看到java源码中,接口覆写父接口的抽象方法,例如RunnableFuture类为什么要覆写Runnable的run方法。
有没有老哥能帮忙解释下
public interface RunnableFuture<V> extends Runnable, Future<V> {
/**
* Sets this Future to the result of its computation
* unless it has been cancelled.
*/
void run();
}
应该是为了写javadoc注释