java8增加了接口的 默认方法。也就是接口可以实现自己的方法了。这样,抽象类处理可以单继承和定义参数外,基本和接口没有区别了。
国外的博客如是说(感谢《solr权威指南》的作者兰小伟提供):
jdk8 brings arguably the abstract class's greatest advantage over the interface to the interface. The implication of this is that a large number of abstract classes used today can likely be replaced and a large number of future work that would have been abstract classes will now instead be interfaces with default methods