Does Java have plan that default method (java8) Substitute for Abstract Class?
问题 Does Java have plan that default method substitute for Abstract Class ? I could not find a real case to use default method instead of Abstract? 回答1: Default methods can't substitute abstract classes, as abstract classes can (and often do) have fields. Interfaces can only contain behaviour and not state, which is unlikely to change in the future as multiple inheritance of state in Java is seen (rightly or wrongly) as evil. They can also have final methods, which is another thing you can't